IRC log of #schooltool for Friday, 2011-03-25

*** replaceafill has quit IRC00:38
*** menesis has quit IRC00:47
*** aks has joined #schooltool05:07
*** aks has joined #schooltool05:07
*** th1a has quit IRC06:53
*** menesis has joined #schooltool07:34
*** yvl has joined #schooltool10:02
*** yvl has quit IRC10:06
*** yvl has joined #schooltool10:36
*** alga has joined #schooltool12:07
*** menesis has quit IRC13:10
*** aks has quit IRC13:28
*** menesis has joined #schooltool14:00
*** th1a has joined #schooltool14:55
*** ignas has joined #schooltool15:02
*** ignas has quit IRC15:48
*** replaceafill has joined #schooltool16:40
*** replaceafill has quit IRC16:41
*** replaceafill has joined #schooltool16:42
replaceafillth1a, zyt?17:07
aelkneryvl, ayt?17:41
*** alga has quit IRC17:52
yvlpong, aelkner18:01
yvla liitle bit18:01
yvlwill be going away in ~15 min18:01
yvlbtw, I'll be semi-available by e-mail this weekend18:03
aelkneri just wanted to double-check some things before i lose you for the weekend18:06
aelkneri think i understand that schooltool.intervention will have a python file that depends on schooltool.gradebook18:06
aelknerthat is only included if the zcml condition is met18:07
aelknerso i can still keep the change to setup.py18:07
aelkneri only pushed the buildout.cfg change so that you know what i had to do in the sandbox18:08
aelknerit's not like you have to kep it when you merge18:08
aelknerbut i'll make sure it's one in the end18:08
yvlplease don't do that again18:08
yvlwhen merging, this only makes things more difficult18:09
replaceafillbtw, hello guys :)18:09
yvlhey replaceafill18:09
aelkneryvl, why the paste?18:10
yvlreplaceafill, gave it18:10
yvlnot me :)18:10
replaceafillaelkner, is for yvl18:10
replaceafillaelkner, sorry to interrupt your conversation :)18:11
aelkneroh, sorry, i thought yvl had pasted it18:11
aelkneryvl, so this plugin feature thing really works?18:12
aelknerhave we done it before in schooltool?18:12
yvlnot for plugins18:12
yvlbut similar things18:12
aelknerbut they work off of config, don't they?18:13
aelkneranyway, just to be clear18:13
aelknerall i change in gradebook is the meta= at the tope18:14
aelknerand <meta:provides feature="plugin-schooltool.gradebook" />18:14
aelknerin the body18:14
aelknerjust those two lines18:14
yvlin config.zcml, yes :)18:14
yvland this is how devmode is enabled from .conf file:18:15
yvl        if options.config.devmode:18:15
yvl            context.provideFeature('devmode')18:15
yvlit's in main.py18:15
aelkneri.e., the python equivalent of the zcml directive18:15
* th1a arrives back at home.18:16
aelknerok, and i'll have current term sensitive views do a dynamic return of the different tempate18:16
aelknerin __call__:18:17
aelknerif 'no current term test':18:17
aelknertemplate = ViewPageTemplateFile('templates/")18:17
aelknerreturn template()18:17
aelknerdoes that sound right?18:17
aelknerand i'll make the same change in schooltool.gradebook18:18
yvlthat would be nice18:19
yvljust check how much work that would be18:19
yvlif too much, you can postpone it18:19
aelkneri dn't think it will be too bad because that view will work on any context18:19
aelkneranyway, thanks for getting back to me so quikcly18:20
aelknerthis will really help my progress for monday18:20
yvlno problems :)18:20
yvlI should thank you! :)18:21
aelknerwell, i'm just doing my job18:21
aelknerbut again, it's nice to be appreciated18:21
th1aThis is the time we're cleaning up the already postponed work, so I'd rather not postpone it further.  ;-)18:21
aelkneryeah, i'll take care of it18:22
replaceafillyvl, couple of quick questions?18:22
replaceafilli know you're hungry :(18:22
yvlgo ahead replaceafill  :)18:22
replaceafilli pasted the attributes i think we need based on cambodia's bunch of reports18:23
replaceafillmy first question is about the school info that changes year by year18:23
replaceafillshould i stick the data into the schoolyear (through annotation and adapters)18:24
replaceafillor should i create a separated container for it?18:24
replaceafilllines 1-21 in the pastebin18:24
yvlcreate a per-int-id container18:26
yvlcopy code from schooltool/groups18:26
replaceafillah! ok18:26
replaceafillthey're related to the intid of the schoolyear, correct?18:26
yvlthis way we'll have 4-7 duplications of identicall code and maybe enough willpower to implement that in a single place ;)18:26
yvlstored by intid18:26
replaceafillgot it18:27
replaceafilland the last question18:27
replaceafilli'm trying to use aelkner's custom fields for most of these18:27
replaceafillprincipals, vice-principals, staff (non-teachers)18:27
replaceafilland the teacher and students need attributes based on the level they teacher or attend18:28
replaceafilli'm not sure how these "conditional" attributes should be handled18:28
yvlshort answer - fully functional filtering not implemented yet18:29
replaceafillfor instance if the teacher teaches 12 grade, we store some additional fields for him/her18:29
replaceafilladd the filtering on the view?18:29
*** menesis has quit IRC18:30
yvldunno, need to look at it18:30
* yvl forgot the details, sorry18:30
replaceafilli'll come back to this on monday with more time :)18:30
replaceafillthanks yvl18:30
yvlfiltering is done by group __name__s18:31
* replaceafill started to think about adding a 'teachers_12_grade' group :D18:31
yvlyeah... no... :)18:32
yvl"make resources and persons use *same* implementation of custom form fields + field filtering by adaptable criteria" was supposed to be the next step18:34
yvlthat we didn't get to yet :)18:34
replaceafillbut this usecase would be perfect for that feature, correct?18:35
yvlhmm, maybe you can do that :D18:37
yvllemme sleep over this this weekend ;)18:37
yvlif you don't mind of course18:38
replaceafillmy hacky answer would be 'put the filtering logic in the views'18:38
yvlI tend to make life harder :/18:38
yvlkeep in touch by mail :)18:41
replaceafillthanks yvl18:41
yvland happy coding guys :)18:41
*** replaceafill has quit IRC19:12
*** menesis has joined #schooltool21:02
*** replaceafill has joined #schooltool22:40
*** replaceafill has quit IRC22:41
*** replaceafill has joined #schooltool22:41

Generated by 2.15.1 by Marius Gedminas - find it at!