IRC log of #schooltool for Thursday, 2005-01-27

*** tvon has joined #schooltool00:43
*** gintas has quit IRC01:30
*** povbot` has joined #schooltool01:47
*** povbot has quit IRC01:47
*** povbot has joined #schooltool01:55
*** th1a has quit IRC02:04
*** povbot has quit IRC02:04
*** th1a has joined #schooltool02:05
*** bskahan has joined #schooltool05:56
*** hazmat has joined #schooltool07:39
*** hazmat has quit IRC09:51
*** hazmat has joined #schooltool09:53
*** d2m_ has quit IRC10:47
*** d2m has joined #schooltool10:51
*** hazmat has quit IRC10:58
*** bskahan has quit IRC12:08
*** mgedmin has joined #schooltool12:29
*** Aiste has joined #schooltool13:40
mgedminhm, the function that prevents cyclic membership is not entirely correct, I think13:54
mgedminit looks at all relationships, not just memberships13:55
mgedminno, I'm wrong13:55
mgedminthe code is correct13:55
* mgedmin tries to decide whether global functions in schoolbell should be namedLikeThis or named_like_this13:57
mgedminPEP-8 suggests names_like_this for global functions13:58
mgedminwe used namesLikeThis in SchoolTool13:58
mgedminZope 3 uses namesLikeThis14:00
mgedminnamesLikeThis it is then14:00
*** d2m has quit IRC14:06
*** Aiste has quit IRC14:06
*** rabidbt has quit IRC14:06
*** th1a has quit IRC14:06
*** rabidbt has joined #schooltool14:07
*** Aiste has joined #schooltool14:07
*** d2m has joined #schooltool14:07
*** th1a has joined #schooltool14:07
*** SteveA has quit IRC15:01
*** thisfred has joined #schooltool15:13
*** SteveA has joined #schooltool15:29
*** gintas has joined #schooltool15:40
*** povbot has joined #schooltool15:59
*** bskahan has joined #schooltool16:39
*** jinty has joined #schooltool16:42
jintybskahan: I see you committed some db upgrade code. (Hint, Hint)17:12
th1aWhen 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
jintythanks, good to know. I'll be off for a while, but then back late tonight.17:17
th1aOK.17:18
bskahanpretty much17:25
* mgedmin is here17:26
bskahanhey marius17:27
jintyhi:)17:27
bskahanafter I moved all the ApplicationObjects to a new Application I ran into a problem with getting the relationships off of the old object17:28
bskahans17:28
mgedminwhat is the problem?17:29
bskahanall of the relationship methods (specifically getRelatedObjects) rely on being able to get the links on an object and looking at link.source17:30
mgedminah, now I remember17:30
bskahanfor some reason link.source gets a no attribute17:30
mgedminI saw the checkin description17:30
mgedminhow are you looping through the links?17:30
mgedminIIRC link sets may contain links and placeholders17:31
mgedminand there are two iterator methods17:31
bskahanstarted with getRelatedObjects(old_item, URIGroup)17:31
bskahankicked the source error17:32
mgedminhmm17:32
mgedmincould that be a broken object returned by ZODB because some things were moved to other modules and unpickling failed to work?17:33
mgedmindo you have a functional test that I could run here?17:33
bskahanthat's what I'm afraid of17:34
mgedmina sample Data.fs file, made with 0.8?17:34
* bskahan nods17:34
bskahanI'm fixing something in the calendar copy code right now, I'll dig back into the relationships in a few minutes17:35
bskahando you want me to check the 0.8 data.fs into subversion?17:35
bskahanor mail it to you?17:35
mgedminsvn mkdir db-conversion-tests17:37
* bskahan nods17:37
mgedminsvn add db-conversion-tests/Data.fs-0.817:37
mgedminsvn add db-conversion-tests/test_0.8_to_0.9.py17:37
mgedmin;)17:37
mgedminthat script could be simple, I hope17:37
mgedminimport tempfile17:37
mgedmintempdir = tempfile.mkdtemp()17:37
mgedminimport shutil17:37
mgedminshutil.copy('Data.fs-0.8', tempdir)17:38
mgedminos.chdir(tempdir)17:38
mgedminos.system('python ../../schooltool-server.py')17:38
mgedminor, better, import schooltool.main; schooltool.main.main()17:38
mgedminthen I can run python -i test_0.8_to_0.9.py and use pdb.postmortem()17:39
bskahanmaking a simpler data.fs to checkin, been using one based on sample school17:45
*** th1a has quit IRC17:49
*** th1a has joined #schooltool18:01
*** gintas has quit IRC18:04
bskahanimport schooltool.main; schooltool.main.main()18:07
bskahanseems to only do part of the migration18:09
bskahanah18:10
bskahannm18:10
bskahandoesn't do the migration, just creates a new db18:15
mgedminah, did you rename Data.fs-0.8 to Data.fs?18:17
bskahanyeah18:20
*** hazmat has joined #schooltool18:20
bskahanshutil.copy('Data.fs-08, tempdir + 'Data.fs')18:20
bskahanlike that18:20
mgedminos.path.join18:21
mgedminI don't think tempdir ends in a slash18:21
bskahanyep18:22
bskahanthat was it18:22
bskahantnx18:23
bskahancommited18:23
bskahanuser bskahan:12345 has calendar events18:23
*** tvon has left #schooltool18:33
bskahanstrange, now I'm not getting an attribute error on link.source its just None18:44
bskahanbut link.retype is correct18:45
bskahan(which was true before too)18:45
bskahangetting the links as18:45
bskahan                for link in old_persons[person].listLinks():18:45
bskahanwhich is probably why getRelatedObjects returns empty tuples now instead of throwing an error18:50
mgedmingetRelatedObjects doesn't care about link.source18:50
mgedminit cares about link.target, IIRC18:51
bskahanlink.target needs traverse(self).source18:51
mgedminah, right18:51
mgedminyuk18:51
bskahanheh18:51
bskahanyeah, without source you can get little info18:52
* mgedmin working on http://source.schooltool.org/viewcvs/trunk/schooltool/src/schoolbell/relationship/README.txt?view=markup18:52
bskahanit sounds so simple ...18:53
*** tvon has joined #schooltool18:55
* bskahan has a meeting. back in 1.518:57
* jinty invites people interested in timetabling to have a look at http://minittml.alioth.debian.org19:10
* tvon looks19:10
*** hazmat has quit IRC19:32
*** jinty has quit IRC19:33
*** Aiste has quit IRC19:46
*** Aiste has joined #schooltool19:51
*** gintas has joined #schooltool19:52
mgedminschoolbell 1.0 does not need hierarchical groups, right?19:52
th1aYes, that's true.19:53
th1ajinty:  Excellent.19:54
* th1a needs to force himself to think about TTML.19:54
*** hazmat has joined #schooltool20:09
* bskahan notices he's using the exact relationship example from the relationship README20:36
mgedminwhich one?20:44
bskahanfor group in getRelatedObjects(old_persons[person], URIGroup):20:44
bskahan                    print group20:44
*** SteveA_ has joined #schooltool20:48
*** SteveA has quit IRC20:49
*** SteveA_ is now known as SteveA20:49
bskahanI tried adding assert_(link.source is not None) to various tests and they all pass21:45
* bskahan is confused21: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 morning21:52
*** Aiste has quit IRC21:53
* bskahan nods21:53
*** tvon has quit IRC22:15
*** tvon has joined #schooltool22:53
*** mgedmin has quit IRC23:16
*** jinty has joined #schooltool23:20
*** gintas has quit IRC23:28
bskahanhttp://www.lyricswithoutmelody.org/sched/avail.php23:56
bskahandhtml scheduling example23:57
bskahanwould really like to be able to move events around like that23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!