*** tvon has joined #schooltool | 00:43 | |
*** gintas has quit IRC | 01:30 | |
*** povbot` has joined #schooltool | 01:47 | |
*** povbot has quit IRC | 01:47 | |
*** povbot has joined #schooltool | 01:55 | |
*** th1a has quit IRC | 02:04 | |
*** povbot has quit IRC | 02:04 | |
*** th1a has joined #schooltool | 02:05 | |
*** bskahan has joined #schooltool | 05:56 | |
*** hazmat has joined #schooltool | 07:39 | |
*** hazmat has quit IRC | 09:51 | |
*** hazmat has joined #schooltool | 09:53 | |
*** d2m_ has quit IRC | 10:47 | |
*** d2m has joined #schooltool | 10:51 | |
*** hazmat has quit IRC | 10:58 | |
*** bskahan has quit IRC | 12:08 | |
*** mgedmin has joined #schooltool | 12:29 | |
*** Aiste has joined #schooltool | 13:40 | |
mgedmin | hm, the function that prevents cyclic membership is not entirely correct, I think | 13:54 |
---|---|---|
mgedmin | it looks at all relationships, not just memberships | 13:55 |
mgedmin | no, I'm wrong | 13:55 |
mgedmin | the code is correct | 13:55 |
* mgedmin tries to decide whether global functions in schoolbell should be namedLikeThis or named_like_this | 13:57 | |
mgedmin | PEP-8 suggests names_like_this for global functions | 13:58 |
mgedmin | we used namesLikeThis in SchoolTool | 13:58 |
mgedmin | Zope 3 uses namesLikeThis | 14:00 |
mgedmin | namesLikeThis it is then | 14:00 |
*** d2m has quit IRC | 14:06 | |
*** Aiste has quit IRC | 14:06 | |
*** rabidbt has quit IRC | 14:06 | |
*** th1a has quit IRC | 14:06 | |
*** rabidbt has joined #schooltool | 14:07 | |
*** Aiste has joined #schooltool | 14:07 | |
*** d2m has joined #schooltool | 14:07 | |
*** th1a has joined #schooltool | 14:07 | |
*** SteveA has quit IRC | 15:01 | |
*** thisfred has joined #schooltool | 15:13 | |
*** SteveA has joined #schooltool | 15:29 | |
*** gintas has joined #schooltool | 15:40 | |
*** povbot has joined #schooltool | 15:59 | |
*** bskahan has joined #schooltool | 16:39 | |
*** jinty has joined #schooltool | 16:42 | |
jinty | bskahan: I see you committed some db upgrade code. (Hint, Hint) | 17:12 |
th1a | When I chatted with tvon at 3:00 am, he said there was a bit left to finish, that they needed to ask Marius about. | 17:14 |
jinty | thanks, good to know. I'll be off for a while, but then back late tonight. | 17:17 |
th1a | OK. | 17:18 |
bskahan | pretty much | 17:25 |
* mgedmin is here | 17:26 | |
bskahan | hey marius | 17:27 |
jinty | hi:) | 17:27 |
bskahan | after I moved all the ApplicationObjects to a new Application I ran into a problem with getting the relationships off of the old object | 17:28 |
bskahan | s | 17:28 |
mgedmin | what is the problem? | 17:29 |
bskahan | all of the relationship methods (specifically getRelatedObjects) rely on being able to get the links on an object and looking at link.source | 17:30 |
mgedmin | ah, now I remember | 17:30 |
bskahan | for some reason link.source gets a no attribute | 17:30 |
mgedmin | I saw the checkin description | 17:30 |
mgedmin | how are you looping through the links? | 17:30 |
mgedmin | IIRC link sets may contain links and placeholders | 17:31 |
mgedmin | and there are two iterator methods | 17:31 |
bskahan | started with getRelatedObjects(old_item, URIGroup) | 17:31 |
bskahan | kicked the source error | 17:32 |
mgedmin | hmm | 17:32 |
mgedmin | could that be a broken object returned by ZODB because some things were moved to other modules and unpickling failed to work? | 17:33 |
mgedmin | do you have a functional test that I could run here? | 17:33 |
bskahan | that's what I'm afraid of | 17:34 |
mgedmin | a sample Data.fs file, made with 0.8? | 17:34 |
* bskahan nods | 17:34 | |
bskahan | I'm fixing something in the calendar copy code right now, I'll dig back into the relationships in a few minutes | 17:35 |
bskahan | do you want me to check the 0.8 data.fs into subversion? | 17:35 |
bskahan | or mail it to you? | 17:35 |
mgedmin | svn mkdir db-conversion-tests | 17:37 |
* bskahan nods | 17:37 | |
mgedmin | svn add db-conversion-tests/Data.fs-0.8 | 17:37 |
mgedmin | svn add db-conversion-tests/test_0.8_to_0.9.py | 17:37 |
mgedmin | ;) | 17:37 |
mgedmin | that script could be simple, I hope | 17:37 |
mgedmin | import tempfile | 17:37 |
mgedmin | tempdir = tempfile.mkdtemp() | 17:37 |
mgedmin | import shutil | 17:37 |
mgedmin | shutil.copy('Data.fs-0.8', tempdir) | 17:38 |
mgedmin | os.chdir(tempdir) | 17:38 |
mgedmin | os.system('python ../../schooltool-server.py') | 17:38 |
mgedmin | or, better, import schooltool.main; schooltool.main.main() | 17:38 |
mgedmin | then I can run python -i test_0.8_to_0.9.py and use pdb.postmortem() | 17:39 |
bskahan | making a simpler data.fs to checkin, been using one based on sample school | 17:45 |
*** th1a has quit IRC | 17:49 | |
*** th1a has joined #schooltool | 18:01 | |
*** gintas has quit IRC | 18:04 | |
bskahan | import schooltool.main; schooltool.main.main() | 18:07 |
bskahan | seems to only do part of the migration | 18:09 |
bskahan | ah | 18:10 |
bskahan | nm | 18:10 |
bskahan | doesn't do the migration, just creates a new db | 18:15 |
mgedmin | ah, did you rename Data.fs-0.8 to Data.fs? | 18:17 |
bskahan | yeah | 18:20 |
*** hazmat has joined #schooltool | 18:20 | |
bskahan | shutil.copy('Data.fs-08, tempdir + 'Data.fs') | 18:20 |
bskahan | like that | 18:20 |
mgedmin | os.path.join | 18:21 |
mgedmin | I don't think tempdir ends in a slash | 18:21 |
bskahan | yep | 18:22 |
bskahan | that was it | 18:22 |
bskahan | tnx | 18:23 |
bskahan | commited | 18:23 |
bskahan | user bskahan:12345 has calendar events | 18:23 |
*** tvon has left #schooltool | 18:33 | |
bskahan | strange, now I'm not getting an attribute error on link.source its just None | 18:44 |
bskahan | but link.retype is correct | 18:45 |
bskahan | (which was true before too) | 18:45 |
bskahan | getting the links as | 18:45 |
bskahan | for link in old_persons[person].listLinks(): | 18:45 |
bskahan | which is probably why getRelatedObjects returns empty tuples now instead of throwing an error | 18:50 |
mgedmin | getRelatedObjects doesn't care about link.source | 18:50 |
mgedmin | it cares about link.target, IIRC | 18:51 |
bskahan | link.target needs traverse(self).source | 18:51 |
mgedmin | ah, right | 18:51 |
mgedmin | yuk | 18:51 |
bskahan | heh | 18:51 |
bskahan | yeah, without source you can get little info | 18:52 |
* mgedmin working on http://source.schooltool.org/viewcvs/trunk/schooltool/src/schoolbell/relationship/README.txt?view=markup | 18:52 | |
bskahan | it sounds so simple ... | 18:53 |
*** tvon has joined #schooltool | 18:55 | |
* bskahan has a meeting. back in 1.5 | 18:57 | |
* jinty invites people interested in timetabling to have a look at http://minittml.alioth.debian.org | 19:10 | |
* tvon looks | 19:10 | |
*** hazmat has quit IRC | 19:32 | |
*** jinty has quit IRC | 19:33 | |
*** Aiste has quit IRC | 19:46 | |
*** Aiste has joined #schooltool | 19:51 | |
*** gintas has joined #schooltool | 19:52 | |
mgedmin | schoolbell 1.0 does not need hierarchical groups, right? | 19:52 |
th1a | Yes, that's true. | 19:53 |
th1a | jinty: Excellent. | 19:54 |
* th1a needs to force himself to think about TTML. | 19:54 | |
*** hazmat has joined #schooltool | 20:09 | |
* bskahan notices he's using the exact relationship example from the relationship README | 20:36 | |
mgedmin | which one? | 20:44 |
bskahan | for group in getRelatedObjects(old_persons[person], URIGroup): | 20:44 |
bskahan | print group | 20:44 |
*** SteveA_ has joined #schooltool | 20:48 | |
*** SteveA has quit IRC | 20:49 | |
*** SteveA_ is now known as SteveA | 20:49 | |
bskahan | I tried adding assert_(link.source is not None) to various tests and they all pass | 21:45 |
* bskahan is confused | 21:46 | |
* mgedmin does not have the time to look at it right now, but will gladly debug a failing standalone migration test script tomorrow in the morning | 21:52 | |
*** Aiste has quit IRC | 21:53 | |
* bskahan nods | 21:53 | |
*** tvon has quit IRC | 22:15 | |
*** tvon has joined #schooltool | 22:53 | |
*** mgedmin has quit IRC | 23:16 | |
*** jinty has joined #schooltool | 23:20 | |
*** gintas has quit IRC | 23:28 | |
bskahan | http://www.lyricswithoutmelody.org/sched/avail.php | 23:56 |
bskahan | dhtml scheduling example | 23:57 |
bskahan | would really like to be able to move events around like that | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!