| *** david_ has joined #schooltool | 00:45 | |
| david_ | hi aelkner | 00:46 |
|---|---|---|
| *** klausade has quit IRC | 01:08 | |
| *** alga_ has joined #schooltool | 01:08 | |
| *** menesis has quit IRC | 01:11 | |
| *** klausade has joined #schooltool | 01:11 | |
| *** alga has quit IRC | 01:13 | |
| *** alga_ has quit IRC | 02:21 | |
| *** david_ has quit IRC | 03:30 | |
| *** david_ has joined #schooltool | 03:42 | |
| *** replaceafill has quit IRC | 05:20 | |
| *** aks has joined #schooltool | 06:23 | |
| *** replaceafill has joined #schooltool | 09:20 | |
| *** menesis has joined #schooltool | 09:21 | |
| *** aks has quit IRC | 09:41 | |
| *** alga has joined #schooltool | 09:46 | |
| *** aks has joined #schooltool | 10:11 | |
| *** replaceafill has quit IRC | 10:13 | |
| *** david_ has quit IRC | 11:52 | |
| *** dadeng_ has joined #schooltool | 11:54 | |
| dadeng_ | hi aelkner | 11:54 |
| dadeng_ | did u see my email? | 11:54 |
| *** dadeng_ has quit IRC | 12:08 | |
| *** aelkner has quit IRC | 14:19 | |
| *** aks has quit IRC | 14:29 | |
| *** ignas has joined #schooltool | 16:34 | |
| *** alga has quit IRC | 16:41 | |
| *** ignas has quit IRC | 17:14 | |
| *** aelkner has joined #schooltool | 17:59 | |
| *** replaceafill has joined #schooltool | 18:36 | |
| *** mattva01 has joined #schooltool | 18:47 | |
| *** menesis has quit IRC | 18:48 | |
| *** replaceafill has quit IRC | 18:51 | |
| *** aelkner has quit IRC | 18:53 | |
| *** th1a has joined #schooltool | 18:58 | |
| *** menesis has joined #schooltool | 19:03 | |
| *** jelkner has joined #schooltool | 19:27 | |
| *** replaceafill has joined #schooltool | 20:15 | |
| *** jelkner has quit IRC | 20:30 | |
| *** aelkner has joined #schooltool | 20:37 | |
| *** mattva01 has quit IRC | 21:10 | |
| *** mattva01 has joined #schooltool | 21:10 | |
| aelkner | replaceafill, ayt? | 22:53 |
| replaceafill | yep | 22:53 |
| aelkner | could you look at something for me please? | 22:53 |
| replaceafill | sure | 22:54 |
| aelkner | i haven't pushed yet, but can soon so that you could see | 22:55 |
| aelkner | one sec | 22:55 |
| replaceafill | ok | 22:55 |
| aelkner | replaceafill, ok, here's the thing: | 22:58 |
| aelkner | i created a skin for the schooltool.courseinfo package | 22:58 |
| replaceafill | can i ask why do you need a new skin? | 22:59 |
| aelkner | i'm not sure i do because I still don't understand how skins work | 23:00 |
| replaceafill | :| | 23:00 |
| aelkner | i needed to override the schoolyear add view | 23:00 |
| aelkner | please look at lp:~aelkner/schooltool/schooltool.courseinfo | 23:00 |
| replaceafill | ah | 23:00 |
| aelkner | in the last comit, i created a skin and made it the default skin | 23:00 |
| replaceafill | branching... | 23:00 |
| aelkner | it has a courseinfo-specific layer | 23:01 |
| aelkner | i registered the schoolyear add view against it, but it passes all tests without hitting the pdb | 23:01 |
| aelkner | and tests always add a schoolyear | 23:01 |
| replaceafill | give me a minute, i'll test | 23:01 |
| aelkner | sure | 23:02 |
| replaceafill | what a bunch of pdbs :D | 23:04 |
| aelkner | :) | 23:04 |
| aelkner | just trying to get to one | 23:04 |
| *** fsufitch has joined #schooltool | 23:10 | |
| aelkner | fsufitch and i are imagining you scratching your head, saying, "why the heck is his not working" | 23:11 |
| aelkner | this | 23:12 |
| replaceafill | downloading eggs | 23:12 |
| replaceafill | i dont see why it's not working | 23:12 |
| aelkner | it looks like it should work, right? | 23:12 |
| aelkner | it's very frustrating because i did the same thing you did in schooltool.cambodia | 23:13 |
| aelkner | it just doesn't want to work for me | 23:13 |
| * replaceafill should use an eggs cache... | 23:14 | |
| aelkner | i don't either :) | 23:15 |
| replaceafill | eeehhh | 23:15 |
| replaceafill | finished building :D | 23:15 |
| replaceafill | ok, let's see | 23:15 |
| replaceafill | yep, i get the usual school year view in the browser | 23:16 |
| replaceafill | you're registration is not being picked up! | 23:17 |
| replaceafill | let me confirm | 23:17 |
| aelkner | when i got rid of the layer, it got the conflict, so it is picking it up | 23:17 |
| replaceafill | yep, confirmed | 23:17 |
| replaceafill | but if insert a typo in the skin name the server starts... | 23:18 |
| replaceafill | <browser:defaultSkin name="SchoolToolCourseInfoa" /> | 23:18 |
| aelkner | ah | 23:18 |
| replaceafill | can you confirm that? | 23:18 |
| replaceafill | and cambodia won't start if i do the same | 23:19 |
| aelkner | confirmed | 23:19 |
| replaceafill | let's see why not... | 23:19 |
| aelkner | i'm sure there's ust one more thing i need to do, but what is the question | 23:20 |
| replaceafill | wait... | 23:21 |
| replaceafill | how did you set up this? | 23:21 |
| replaceafill | as a plugin? | 23:21 |
| aelkner | includePlugins? | 23:21 |
| aelkner | is it a plugin? | 23:22 |
| replaceafill | i'm asking you | 23:22 |
| aelkner | no, i understand, but i guess it should be | 23:22 |
| replaceafill | i see cambodia is registered differently | 23:22 |
| replaceafill | check setup.py | 23:22 |
| replaceafill | and cambodia has all this crap: | 23:23 |
| replaceafill | <include package="schooltool.common" /> | 23:23 |
| replaceafill | <include package="z3c.autoinclude" file="meta.zcml" /> | 23:23 |
| replaceafill | <includePlugins package="schooltool" file="plugin.zcml" /> | 23:23 |
| replaceafill | <include package="schooltool.timetable" /> | 23:23 |
| replaceafill | <include package="schooltool.basicperson" /> | 23:23 |
| replaceafill | :D | 23:23 |
| replaceafill | i wonder if that's related to the plugin not being registered... | 23:23 |
| aelkner | perhaps includePlugins is necessary | 23:24 |
| aelkner | i added the first three lines you just mentioned above, no help | 23:27 |
| aelkner | how is setup.py different in cambodia? | 23:27 |
| aelkner | entry_points? | 23:29 |
| replaceafill | it has an entry point | 23:29 |
| replaceafill | yes | 23:29 |
| replaceafill | for the configuration | 23:29 |
| aelkner | but here's the thing | 23:29 |
| aelkner | we need this to be pluggable into a cando instance in the end | 23:29 |
| aelkner | also, do you know what it means to set the instance type to schooltool.cambodia.app? | 23:30 |
| aelkner | i guess it uses that as the starting configure.zcml, right? | 23:31 |
| replaceafill | yep | 23:31 |
| aelkner | if i change setup.py, i need to do bin/buildout, right? | 23:32 |
| replaceafill | yes | 23:33 |
| aelkner | still doesn't get to the view | 23:33 |
| aelkner | i added this to entry_points: | 23:34 |
| aelkner | [schooltool.instance_type] | 23:34 |
| aelkner | schooltool.courseinfo = schooltool.courseinfo | 23:34 |
| aelkner | cambodia puts its entry point in app, but we don't even have an app package | 23:35 |
| replaceafill | ;) | 23:41 |
| replaceafill | success | 23:41 |
| aelkner | dependency links? | 23:41 |
| *** menesis has quit IRC | 23:41 | |
| replaceafill | ok, do you have a cambodia running? | 23:42 |
| replaceafill | raise ComponentLookupError(interface, name) | 23:42 |
| replaceafill | zope.configuration.config.ConfigurationExecutionError: <class 'zope.component.interfaces.ComponentLookupError'>: (<InterfaceClass zope.publisher.interfaces.browser.IBrowserSkinType>, u'SchoolToolCourseInfoa') | 23:42 |
| replaceafill | in: | 23:42 |
| replaceafill | File "/home/replaceafill/.sandboxes/schooltool.courseinfo/src/schooltool/courseinfo/configure.zcml", line 27.2-27.54 | 23:42 |
| replaceafill | <browser:defaultSkin name="SchoolToolCourseInfoa" /> | 23:42 |
| aelkner | i can't get cambodia to run | 23:43 |
| aelkner | i tried pulling your branch | 23:43 |
| aelkner | but your buildout.cfg has local checkouts of schooltool and schooltool.gradebook | 23:43 |
| replaceafill | ok | 23:44 |
| replaceafill | here's what i've found | 23:44 |
| aelkner | develop = . schooltool replaceafill_schooltool.gradebook | 23:44 |
| aelkner | anyway, i'm all ears | 23:44 |
| replaceafill | when you create an instance with your package, the school.zcml file references schooltool.standard | 23:44 |
| replaceafill | can you see that? | 23:44 |
| replaceafill | instance/school.zcml | 23:44 |
| aelkner | yes | 23:45 |
| replaceafill | why it's schooltool.standard, i have no **** idea | 23:45 |
| replaceafill | :) | 23:45 |
| replaceafill | but in cambodia, that line gets to: schooltool.cambodia.app | 23:45 |
| replaceafill | so all the configuration in schooltool.cambodia.app.configure.zcml takes place | 23:45 |
| replaceafill | i forced your skin to work by: | 23:45 |
| replaceafill | changing the instance/school.zcml file to point to schooltool.courseinfo | 23:46 |
| replaceafill | and add the lines we talked about above to configure.zcml | 23:46 |
| aelkner | and to setup.py, right? | 23:46 |
| replaceafill | no | 23:46 |
| replaceafill | i didnt touch setup.py | 23:46 |
| aelkner | but that's where the instance type is set | 23:47 |
| replaceafill | but the problem it's there | 23:47 |
| replaceafill | yes | 23:47 |
| aelkner | but school.zcml is a generated file | 23:47 |
| replaceafill | yes | 23:47 |
| aelkner | but tests don't use school.zcml, do they? | 23:48 |
| aelkner | are you saying that you get to the pdb now when you bin/test? | 23:48 |
| replaceafill | ah no, make run | 23:48 |
| replaceafill | let me see the test | 23:48 |
| replaceafill | tests still pass | 23:50 |
| replaceafill | but the ftests are using the basic person skin... | 23:50 |
| aelkner | ah ha | 23:51 |
| replaceafill | if i change the tests to use the courseinfo skin i get to the pdb | 23:51 |
| aelkner | so that's it then | 23:51 |
| replaceafill | TypeError: ('Not enough context information to get parent', <zope.browserpage.metaconfigure.SchoolYearAddView object at 0xa0e4090>) | 23:51 |
| aelkner | that's if you continue on from the pdb, right? | 23:52 |
| replaceafill | ok | 23:52 |
| replaceafill | i changed the basicperson skin to the courseinfo skin in the ftesting.zcml | 23:52 |
| replaceafill | i ran bin/test | 23:52 |
| replaceafill | and i got to the pdb | 23:52 |
| replaceafill | but you dont need to declare courseinfo if your registration works correctly | 23:53 |
| replaceafill | which in your case doesnt | 23:53 |
| aelkner | that view class is broken, if i get rid of the __init__ and __call__, it would work better | 23:53 |
| aelkner | i'm changing the __call__ method to call super as it should to see if that fixes it | 23:56 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!