| *** pcardune has joined #schooltool | 00:18 | |
| pcardune | srichter: ayt? | 00:20 |
|---|---|---|
| srichter | pcardune: yep | 00:35 |
| pcardune | is there any reason why menus don't work after requirements h ave been accessed through their namespace? | 00:44 |
| pcardune | I don't get any kind of schooltool menu, and thus can't register any menu items | 00:45 |
| pcardune | srichter: wow, i just noticed the 9 minute lag | 00:46 |
| hoffman | 9 minute IRC lag? | 00:46 |
| hoffman | Are you using chat.freenode.net? | 00:46 |
| pcardune | irc.freenode.net | 00:47 |
| hoffman | Try chat.freenode.net. | 00:47 |
| *** _pcardune has joined #schooltool | 00:49 | |
| _pcardune | i guess i'll use this from now on | 00:49 |
| _pcardune | hoffman: just looking through some code, i think the schooltool.app.browser.app.ContainerView docstring could use some updating | 00:50 |
| _pcardune | unless you know where add_title and add_url are used | 00:51 |
| hoffman | freenode is deprecating irc. for chat. | 00:51 |
| srichter | _pcardune: can you give me the URL where the menu items are missing> | 00:51 |
| _pcardune | localhost:7080/++requirement++ | 00:51 |
| hoffman | _pcardune: You're welcome to update it. | 00:51 |
| _pcardune | hoffman: ok, sounds good | 00:52 |
| srichter | _pcardune: mmh, sounds strange | 00:52 |
| srichter | it does not make much sense | 00:52 |
| srichter | have you tried to debug it? | 00:52 |
| _pcardune | yeah, as much as I can | 00:52 |
| srichter | any clue? | 00:53 |
| _pcardune | I mean, i figured at first that somehow it wasn't recognizing that the context implemented IRequirement | 00:53 |
| _pcardune | which is how it knows what menu items to show... | 00:53 |
| _pcardune | except that it obviously does recognize the type if every other view for IRequirement works fine | 00:54 |
| srichter | mmh, the ++requirement++ namespace does nto work | 00:54 |
| srichter | do I have to install CanDo? | 00:54 |
| srichter | or should it work with plain ST? | 00:55 |
| _pcardune | ummm | 00:55 |
| _pcardune | the configuration for the browser views are in cando | 00:55 |
| srichter | ah, ok | 00:55 |
| srichter | including the namespace? | 00:55 |
| _pcardune | yeah | 00:56 |
| srichter | ok | 00:56 |
| srichter | then it makes sense | 00:56 |
| srichter | I am updating my cando sandbox | 00:56 |
| _pcardune | ok great | 00:57 |
| srichter | I am getting: | 00:57 |
| srichter | el/etc/package-includes/cando-configure.zcml", line 1.0-1.27 | 00:57 |
| srichter | ZopeXMLConfigurationError: File "/opt/zope/SchoolTool/st-cando/src/cando/configure.zcml", line 8.2-8.51 | 00:57 |
| srichter | OSError: [Errno 2] No such file or directory: '/opt/zope/SchoolTool/st-cando/src/cando/locales' | 00:57 |
| _pcardune | yeah, if i remember correctly, svn doesn't like empty directories... but there is nothing to put in locales | 00:58 |
| _pcardune | i was going to have the makefile do that, but i don't know if that is the proper fix for that | 00:59 |
| _pcardune | looking at the apidoc code i thought it might be necessary to "apply a skin" but that didn't seem to work either | 01:03 |
| srichter | can you just add the locales directory? | 01:07 |
| _pcardune | yeah | 01:07 |
| _pcardune | srichter: is it working? are you as confused by the problem as I am? | 01:14 |
| srichter | claudia got home | 01:26 |
| srichter | so I am otherwise busy ;-) | 01:26 |
| _pcardune | srichter: oh, that's fine. In any case if you ever take a look at it in the near future, I would be very thankful | 01:27 |
| _pcardune | I'm sure it's something trivial that I'm just not seeing or don't know about | 01:27 |
| _pcardune | thanks anyways | 01:27 |
| *** Toothpick has joined #schooltool | 04:42 | |
| *** Toothpick has quit IRC | 04:51 | |
| povbot` | /svn/commits: * hoffman committed revision 5562: | 08:33 |
| povbot` | /svn/commits: Documentation gaffe. | 08:33 |
| *** pcardune_ has joined #schooltool | 10:04 | |
| *** _pcardune_ has joined #schooltool | 10:06 | |
| *** pcardune has quit IRC | 10:21 | |
| *** _pcardune has quit IRC | 10:21 | |
| *** erchache has joined #schooltool | 12:19 | |
| erchache | hi | 12:21 |
| erchache | where are schoolbell binary installation for mac os x? :-S | 12:31 |
| erchache | hoffman | 12:31 |
| *** mgedmin has joined #schooltool | 12:38 | |
| *** alga has joined #SchoolTool | 12:38 | |
| erchache | hoffman: ConfigurationError: ('Invalid value for', 'class', "Couldn't import schoolbell.app.rest.app, No module named libxml2") | 12:50 |
| erchache | make: *** [build] Error 1 | 12:50 |
| erchache | :-S | 12:50 |
| erchache | doing a make build update-translatiions on schooltool 0.11.3 with mac os x dmg package | 12:51 |
| erchache | oopss mac os x package doesnt have correct .po files...going to download from web to translate by hand! | 12:53 |
| *** ChrisW has joined #schooltool | 12:58 | |
| ChrisW | *poke* | 12:58 |
| ChrisW | anyone alive here and know how big (data wise) it's going to be if I do an anonymous checkout of http://source.schooltool.org/svn/trunk/? | 12:58 |
| mgedmin | 178 megs or so, if you also run 'make' inside (which will check out Zope 3) | 13:00 |
| ChrisW | ouch | 13:00 |
| *** ignas has joined #schooltool | 13:00 | |
| mgedmin | ouch | 13:00 |
| mgedmin | du -chs ~/schooltool | 13:00 |
| mgedmin | 472M total | 13:00 |
| ChrisW | is there smaller thing I can checkout? | 13:00 |
| ChrisW | I have Zope 3 trunk here already | 13:01 |
| mgedmin | wait a second | 13:01 |
| ChrisW | it appears SchoolTool is the best example of a Zope 3 app | 13:01 |
| mgedmin | you should not check out /trunk directly -- it contains other things besides schooltool | 13:01 |
| mgedmin | check out http://source.schooltool.org/svn/trunk/schooltool | 13:01 |
| mgedmin | then make a symlink schooltool/Zope3 -> location_of_your_zope3_dir | 13:01 |
| mgedmin | then the makefile will not check out another copy of Zope 3 for you | 13:02 |
| ChrisW | how bit is that? | 13:02 |
| ChrisW | (and I'm mainly looking for source code examples here..) | 13:02 |
| *** mgedmin has quit IRC | 13:02 | |
| *** mgedmin has joined #schooltool | 13:03 | |
| mgedmin | aargh, what is it with me an accidental Ctrl+Alt+Backspaces? | 13:03 |
| mgedmin | a fresh checkout of trunk/schooltool is 31M | 13:04 |
| ChrisW | *chuckles* | 13:04 |
| ChrisW | okay, I'll have to pass ,that's still too big for me :-S | 13:04 |
| *** vidasp has joined #schooltool | 13:05 | |
| mgedmin | well, you can always browse the whole source tree on-line (with syntax highlighting!) if you are looking for source code examples | 13:08 |
| ChrisW | hehe, the problem is that I'm in deepest darkest (well, okay, it's the middle of summer and blazingly hot and sunny here) Africa, and I'm working ofline 99% of the time ;-) | 13:10 |
| *** ChrisW has left #schooltool | 13:49 | |
| *** erchache has left #schooltool | 13:54 | |
| *** thisfred has joined #schooltool | 14:29 | |
| *** _pcardune_ has quit IRC | 15:33 | |
| *** pcardune_ has quit IRC | 15:33 | |
| *** jinty has joined #schooltool | 15:46 | |
| *** th1a has joined #schooltool | 16:54 | |
| th1a | I've run into an error in my section attendance sample data generation. | 16:55 |
| th1a | TypeError: ('Could not adapt', <schooltool.person.person.Person object at 0xb6d700ac>, <InterfaceClass schooltool.attendance.interfaces.ISectionAttendance>) | 16:55 |
| th1a | That's when I try to do: ISectionAttendance(student).set(section, fall.first) | 16:55 |
| mgedmin | is that in a unit test? | 16:56 |
| th1a | YEs. | 16:56 |
| th1a | So it isn't reading the ZCML. | 16:56 |
| mgedmin | yes | 16:56 |
| mgedmin | you need to set up the adapters manually | 16:56 |
| th1a | Where? | 16:57 |
| th1a | In the unit test? | 16:57 |
| mgedmin | in the setUp of the unit test ideally | 16:58 |
| mgedmin | >>> setup.placelessSetUp() | 16:59 |
| mgedmin | >>> setup.setUpAnnotations() | 16:59 |
| mgedmin | >>> from schooltool.attendance.attendance import getSectionAttendance | 16:59 |
| mgedmin | >>> provideAdapter(getSectionAttendance, [IPerson], ISectionAttendance) | 16:59 |
| mgedmin | (in my snippet provideAdapter is zope.component.provideAdapter, not zope.app.testing.ztapi.provideAdapter) | 16:59 |
| th1a | Should I use the testing version of provideAdapter when I'm testing? | 17:00 |
| mgedmin | I don't think it matters | 17:04 |
| mgedmin | I do not know why there are two versions of provideAdapter with different argument order | 17:04 |
| th1a | OK. Think I got it. Should I do this in schooltool.testing.setup? Create setupAttendance? | 17:04 |
| mgedmin | I don't like that idea | 17:05 |
| mgedmin | we're trying to reduce cross-package dependencies | 17:06 |
| mgedmin | I assume you're putting the sampledata plugin inside schooltool.attendance? | 17:06 |
| th1a | OK. I won't do it then ;-) | 17:06 |
| th1a | makes sense. | 17:06 |
| th1a | Yes. | 17:07 |
| mgedmin | musings about the future: | 17:07 |
| mgedmin | if package st.foo needs some setup of package st.bar | 17:07 |
| mgedmin | then st.bar.testing should have a setUpBar | 17:07 |
| mgedmin | and st.foo.tests.test_something will from st.bar.testing import setUpBar and call it | 17:07 |
| srichter | yep, that would be ideal | 17:08 |
| *** toothpick has joined #schooltool | 17:20 | |
| *** toothpick has left #schooltool | 17:36 | |
| *** jinty has quit IRC | 17:40 | |
| *** mgedmin has quit IRC | 18:21 | |
| th1a | At this point, is there no way to get a list of sections a student is a member of, without getting all groups he is a member of? | 18:24 |
| srichter | I think we really have to start thinking of implementing a catalog with indeces that do this sort of work | 18:26 |
| *** mgedmin has joined #schooltool | 18:49 | |
| *** mgedmin_ has joined #schooltool | 19:00 | |
| *** mgedmin has quit IRC | 19:16 | |
| *** mgedmin_ has quit IRC | 19:21 | |
| alga | th1a: getRelatedObjects(student, URISection) | 19:29 |
| *** vidasp has quit IRC | 20:16 | |
| *** mgedmin has joined #schooltool | 20:40 | |
| *** tiredbones has quit IRC | 20:55 | |
| *** tiredbones has joined #schooltool | 21:01 | |
| *** Aiste has quit IRC | 21:23 | |
| *** ignas has quit IRC | 21:47 | |
| *** Aiste has joined #schooltool | 21:56 | |
| *** thisfred has quit IRC | 22:00 | |
| th1a | So... the first and last attributes of a term don't have a tzname? | 22:22 |
| th1a | I can't use them directly expand a calendar? | 22:22 |
| th1a | Oh... are they strings and not datetime objects? | 22:26 |
| mgedmin | they are dates | 22:28 |
| mgedmin | datetime.date objects | 22:28 |
| mgedmin | you cannot use them directly to expand a calendar | 22:28 |
| mgedmin | you need to convert them to datetimes | 22:28 |
| mgedmin | in the school's timezone | 22:28 |
| mgedmin | (there should be a function somewhere to do that) | 22:28 |
| mgedmin | and by "should be" I mean "there isn't", not "I forgot its name" | 22:29 |
| mgedmin | :/ | 22:29 |
| th1a | Wonderful. | 22:29 |
| mgedmin | the attendance code does something like this somewhere | 22:29 |
| mgedmin | a method called getSchooldayBounds somewhere? | 22:29 |
| th1a | They are datetime.dates instead of datetime.datetime? | 22:30 |
| mgedmin | yes | 22:30 |
| th1a | This? | 22:34 |
| th1a | @property | 22:34 |
| th1a | def date(self): | 22:34 |
| th1a | app = ISchoolToolApplication(None) | 22:34 |
| th1a | tzinfo = pytz.timezone(IApplicationPreferences(app).timezone) | 22:34 |
| th1a | return self.datetime.astimezone(tzinfo).date() | 22:34 |
| mgedmin | yes | 22:35 |
| th1a | Hm... that's in SectionAttendanceRecord. Can I call that somehow, or should I just sigh and duplicate it? | 22:40 |
| mgedmin | sigh | 22:41 |
| mgedmin | perhaps move this logic into a function in, say, schooltool.timetable.utils? | 22:42 |
| mgedmin | I will not object to duplication given the current state of the code | 22:43 |
| th1a | I can't stop and create and test a new utility function at this point. That's one too many nested tasks for my little brain. | 22:43 |
| mgedmin | that's why the XP coding cycle is test-code-refactor | 22:49 |
| *** alga has quit IRC | 23:35 | |
| *** jinty has joined #schooltool | 23:47 | |
| povbot` | /svn/commits: * srichter committed revision 5563: | 23:51 |
| povbot` | /svn/commits: Correct I18n domain. | 23:51 |
| povbot` | /svn/commits: * srichter committed revision 5564: | 23:59 |
| povbot` | /svn/commits: Finished the documentation. Added code comments and reacted to Tom's comments. | 23:59 |
| srichter | th1a: I just checked in the finished documentation stuff | 23:59 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!