IRC log of #schooltool for Tuesday, 2010-05-25

*** ignas has joined #schooltool00:27
*** menesis has quit IRC02:02
*** alga_ has quit IRC02:31
*** alga has quit IRC02:31
*** replaceafill has joined #schooltool03:00
*** ignas has quit IRC03:33
*** replaceafill has quit IRC04:27
*** replaceafill has joined #schooltool04:58
*** ignas has joined #schooltool05:15
*** ColonelPanik has quit IRC06:33
replaceafillyvl, zope.app.dependable.interfaces.IDependable is used to prevent the object from being deleted, correct?06:43
*** th1a has quit IRC06:47
replaceafill"To prevent this user from being deleted we add a dependency" :D07:01
*** dogi_ has quit IRC07:11
yvlreplaceafill, yes08:19
replaceafillyvl, thanks :)08:20
replaceafillyvl, ping08:40
yvlpng08:40
replaceafillyvl, do you see "issues" if a new school year doesn't have the five default groups?08:40
replaceafilli mean, if we make them optional08:40
replaceafillmaybe crowds or something breaking...08:41
yvlthe code makes assumption that they always exist08:41
replaceafill:(08:41
yvlI never checked how much of it08:42
replaceafillthey can't be optional then08:42
yvlthat would not be safe08:42
yvlmaybe08:42
replaceafillgot it, thanks yvl08:43
yvlyou can leave the automatic creation of the default crowds in a schoolyear08:43
yvland handle copying of members in a different "manual" step08:44
yvlor something like that08:44
replaceafillyou mean, default groups?08:44
yvlyes :)08:48
*** alga has joined #schooltool09:16
*** alga_ has joined #schooltool09:16
replaceafillyvl, could you please confirm that bool(some_active_schoolyear) == False?09:49
yvl:)09:59
yvlwell09:59
yvlit's a container09:59
yvlso if it's empty...09:59
yvl(i.e. no terms)09:59
replaceafilldamn!!! terms!!09:59
replaceafill:D09:59
yvl;)10:00
replaceafillcompletely forgot to put terms in it! thanks yvl10:00
replaceafillduh!10:00
replaceafill:P10:00
replaceafillyvl, however:10:01
replaceafill        active_schoolyear = syc.getActiveSchoolYear()10:01
replaceafill        if active_schoolyear:10:01
yvlwhere did you find it?10:01
yvlit's a bug10:01
replaceafillshould be better as "if active_schoolyear is not None" right?10:02
yvlyes10:02
yvlin python one should always, always compare against None10:02
yvlwhen one wants to compare against None10:02
replaceafillschooltool.group.group.InitGroupsForNewSchoolYear10:02
yvlbecause great many things can be false10:02
replaceafilllike empty containers ;)10:03
yvloh, that's just sweet10:03
yvland XXX above it10:03
yvlunit test me10:03
yvlriiiight10:03
replaceafill:D10:03
yvlwell, stuff happens...10:03
replaceafilland check 'manager' vs 'managers' ;)10:04
replaceafillfor the group id10:04
yvlyes :)10:04
yvlon the ObjectAddedEvent sys probably are empty anyway10:04
yvland the code - not executed :|10:05
replaceafillbut copyAllGroups should compare against 'manager', right?10:05
replaceafillsince that's the id used aboved10:05
replaceafillabove10:05
yvlwell yes10:06
yvlthough this code could just create the groups as it does now10:06
yvland members could be transferred via "manage->new s.y."10:07
replaceafillyes10:07
*** yvl has quit IRC10:29
*** ignas has quit IRC10:38
*** replaceafill has quit IRC10:52
*** menesis has joined #schooltool11:17
*** yvl has joined #schooltool11:30
*** ignas has joined #schooltool11:41
*** alga_ has quit IRC11:51
*** menesis has quit IRC13:35
*** Aiste has joined #schooltool14:15
*** menesis has joined #schooltool14:24
*** th1a has joined #schooltool16:04
*** jelkner has joined #schooltool16:56
*** alga has quit IRC17:05
*** alga has joined #schooltool17:05
*** Aiste has quit IRC17:05
*** replaceafill has joined #schooltool17:06
*** alga has quit IRC17:30
*** ColonelPanik has joined #schooltool17:58
*** menesis has quit IRC18:42
*** ignas has quit IRC19:27
*** menesis has joined #schooltool20:25
*** ignas has joined #schooltool20:33
*** menesis has quit IRC21:32
*** replaceafill has quit IRC21:55

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