IRC log of #schooltool for Monday, 2011-01-10

aelknerfsufitch, you there?01:12
*** alga_ has joined #schooltool01:29
*** alga has quit IRC01:30
*** alga_ has quit IRC01:46
*** alga has joined #schooltool01:47
*** alga has quit IRC04:51
aelknerybl: ping08:30
aelkneryvl, i mean08:31
yvlhi aelkner10:43
yvlsorry, I'm late today, had to take my car to the shop10:45
*** menesis has joined #schooltool11:15
*** fsufitch has quit IRC11:23
*** alga has joined #schooltool12:34
*** alga has quit IRC12:53
*** alga has joined #schooltool14:07
*** menesis has quit IRC15:05
*** replaceafill has joined #schooltool15:06
*** menesis has joined #schooltool16:02
*** menesis has quit IRC16:14
*** menesis has joined #schooltool16:14
*** menesis has joined #schooltool16:16
*** th1a has joined #schooltool16:30
th1ahi aelkner, replaceafill, yvl, menesis.16:31
replaceafillgood morning/afternoon16:31
menesishi16:31
aelknermorning16:31
th1aWell, the good news is aelkner doesn't have to worry about missing the Eagles in the Super Bowl while we're in Portugal.16:31
replaceafill:D16:31
aelkneryeah, i think :)16:31
yvlmorning guys :)16:32
* th1a never considered it a serious likelihood.16:32
aelknernow we'll see about them steelers16:32
th1aI'm not counting on it.16:32
* replaceafill feels bad for indianapolis :(16:32
aelkneri was glad16:32
* replaceafill wanted indianapolis vs new england16:32
aelknerpeyton was always over-rated16:33
aelkneranother one and out for him16:33
aelknerhow can you be great and have a 9-10 losing record in the playoffs16:33
aelknerit's time to stop comparing him to the montana's of football history16:34
th1aAll right, moving on from football talk...16:34
th1aHow's your work coming aelkner?16:35
aelknerwell, i made some progress with the demographic field limit_keys field16:35
aelkneri pushed my latest fix to make the field a set rather than a list16:36
aelknerand that cuased the defaul widget to come up with a nive select (not drop-down) box16:36
aelknerwhich makes a lot more sense than a list anyway, since there's only reason to choose any type once16:36
aelknerso yvl, thanks for your tips in your email response16:37
th1ais "nive select" a typo or something I should know about?16:37
aelknernow, i have two remaining issues with it that i hope to work with yvl on after the meeting16:37
aelknernice select16:38
th1aok  ;-)16:38
yvlthe one with two arrows?16:38
yvland two lists?16:38
aelkneri don't know why i'm having trouble typing v and b lately16:38
aelknerno better16:38
yvlor the one with multi-select16:38
aelknerwhat do you call the select box that has all the choices in one vertical box16:38
aelknerand then you can click on one or more of them?16:38
aelkneryes16:38
yvlah, that one has a small quirk though16:39
aelknerit's exactly what we need16:39
yvltry unselecting ;)16:39
replaceafillyvl, so, z3c.form uses multiselect for sets and two lists for lists?16:39
aelknerit works if you hold the control key down16:39
yvlah :)16:39
aelkneryvl, could you please bull my branch during the meeting?16:39
yvlI'll bull it ;)16:40
aelknerthanks16:40
yvlreplaceafill, almost -16:40
yvlzope has something like IUnorderedCollection16:40
yvlthat is used for sets and frozensets16:40
aelknerreplaceafill, you could pull it, too, i think your input would be helpful16:40
replaceafillaelkner, i just have one comment about your values16:40
replaceafillthey are i18n strings16:40
aelkneryeah, i was getting to that16:41
yvland there's some basic implementation of "multiple select" composed of checkboxes, though not wired in by default16:41
aelknerit would better if what the user saw was a trnaslated vocabulary16:41
replaceafillyvl, ah16:41
aelkneri like the multi-select field yself16:41
aelknerless for the user to click16:41
replaceafillaelkner, value + title + token in vocabularies is better, i think16:41
yvlyes16:42
replaceafillthe user sees the title, the form handles the token and you store the value16:42
aelkneranyway16:42
aelknercan we discuss this after the meeting?16:42
aelkneri don't want to take up too much time here16:42
yvlsure16:42
aelkneralso, i worked with filip, thanks replaceafill for your help there16:42
replaceafillnp16:42
aelkneralso, i had a good meeting with him this weekend on the phone16:43
aelknerhe has a very clear idea of how to proceed for now16:43
aelkneralso, i recommended that he meet with David soon to get the same tour i got16:43
aelknerof the apps that David's brother made and what the user (David) expects16:44
aelknerso he should be doing that very soon16:44
aelknerfinally, i looked at that South African report16:44
th1aYeah, it obviously helps a lot if you can look at the app David already has.16:44
aelknerand we will need to talk about school demos at some point16:44
th1aAbout getting them in trunk?16:45
aelknerthere are none16:45
aelknerin schooltool.niepa i just extended IApplicationPreferences16:45
aelkneras was done in schooltool.cambodia16:45
aelknerbut that is not as flexible as schol demos16:45
aelknerwe would need to add that like i did with adding resource demos16:46
th1aOK.16:46
aelkneranyway, i only lost a couple of days to that nasty cold16:46
aelknerand we need to talk about my driving up this week16:46
aelknercould it wait unil wed?16:47
aelkneri have two things to do here tues16:47
th1aThat would be fine.16:47
aelknerok, we can talk later today16:47
aelknerthat's my report16:48
th1aThanks and condolences, aelkner.16:48
th1areplaceafill?16:48
replaceafillok16:48
replaceafilli split the functional tests of the gradebook16:49
replaceafilland sent an email to the dev list so everybody is aware of it16:49
replaceafilli also fixed the default category selection for new the activity form16:49
replaceafilli have a question here16:50
replaceafillhow do you set the selected option in a z3c.form widget?16:50
replaceafilli did this:16:50
replaceafill    def updateWidgets(self):16:50
replaceafill        super(ActivityAddView, self).updateWidgets()16:50
replaceafill        categories = getCategories(ISchoolToolApplication(None))16:50
replaceafill        if not self.widgets['category'].value:16:50
replaceafill            self.widgets['category'].value = [categories.getDefaultKey()]16:50
replaceafillsorry for the flood16:50
yvltrying to remember...16:51
replaceafillyvl, i don't like the 'if not', could i use the hidden input:16:51
replaceafill    <input name="form.widgets.category-empty-marker"16:51
replaceafill           type="hidden" value="1" />16:51
replaceafillin some way16:51
yvla sec, please go on with report ;)16:51
replaceafillmenesis merged those changes to trunk already16:52
replaceafillthank menesis16:52
replaceafilli also moved browser templates, rml and file resources to their own directories16:52
replaceafillthey looked like a mess in the browser directory16:52
replaceafilland i added functional tests for:16:52
replaceafill- the term and section dropdowns of the gradebook16:53
replaceafill- the due date filter widget (and i have some comments about it)16:53
replaceafill- averages higher than 100%16:53
replaceafill(making sure they work with custom scoresystems)16:53
replaceafilllike we discussed last week16:54
yvlreplaceafill: adapter = zope.component.queryMultiAdapter(16:54
yvl                (self.context, self.request, self.form, self.field, self),16:54
yvl                interfaces.IValue, name='default')16:54
replaceafillall this helped me found a bug: https://bugs.launchpad.net/bugs/70052016:54
replaceafilldoes default work for select dropdowns?16:54
yvl(or alternatively, specify default=XXX in schema field)16:54
replaceafillyvl, will try that then, i thought default didnt work for selects :(16:55
yvl(it should, but I never tested)16:55
replaceafillmenesis, i noticed the gradebook's translation template was outdated16:55
replaceafillbut when i ran make update-translations to update them i got a traceback16:56
replaceafillregarding zope.app.form vs zope.formlib16:56
yvl(but if field.default is set, it takes precedence)16:56
replaceafillyvl, ah!16:56
menesisreplaceafill, may be. I will update the template and translations myself16:56
replaceafillmenesis, http://pastebin.com/DhZ6F7Q3 that fixes it16:56
replaceafillmenesis, but i dont understand why those import dont work16:57
replaceafillmenesis, ok, i'lll leave that to you :)16:57
replaceafillth1a, finally, i have some comments about the due date filter widget16:57
replaceafillbut i dont think that funciotnality is very important, correct?16:57
*** jelkner has joined #schooltool16:57
replaceafilli mean, it's a global setting16:58
replaceafillthat can be confusing for users16:58
replaceafillif you enable it and then go to another worksheet, section or term, you will get the filtering16:58
menesisOld imports should work, but updating them is desirable anyway16:58
replaceafillmenesis, cool16:58
replaceafillyvl, in the gradebook i changed the use of date.today() to use IDateManager.today16:59
replaceafillsince it's easier to ftest16:59
yvlthanks!16:59
th1areplaceafill:  Well, the due date filtering widget itself is kind of clunky.16:59
replaceafilland there's a 'view.html' view that it's there but is not accessible for the user17:00
replaceafilli mean, there's no button or link to it17:00
th1aBasically the idea is that some teachers will want to put a lot of activities in one worksheet, so it makes that practical.17:00
replaceafillth1a, also that widgets only works when you mark the checkbox, select the number of weeks and hit the 'Save' button!17:01
replaceafillhaving to hit 'Save' seems weird17:01
replaceafillmaybe if we submit the form when the user marks the checkbox?17:02
th1aThat makes more sense.17:02
replaceafillbtw, the unaccessible 'view.html' view, looks like this: http://img808.imageshack.us/img808/7862/viewhtml.png17:02
th1aOverall it should be less obtrusive.17:02
replaceafillfinally, i took a look at cambodia, have to clean it a little bit17:03
replaceafillremove some hacks :(17:03
replaceafilland i hope i get to finish the gradebook refactoring started by yvl17:03
replaceafilland use it in cambodia17:03
replaceafillsince it makes easier to add columns to the gradebook17:03
replaceafillth1a, that's it from me17:04
th1areplaceafill:  OK, sounds good.17:04
replaceafilli plan to keep adding tests to the gradebook, if that's o17:04
replaceafillok17:04
th1aYes, especially since it is sensitive to small errors.17:04
th1ayvl?17:05
yvlpushed timetables forward, worht of 10 estimated hours17:05
yvl* worth17:05
yvlhad to take some time of to fix my **** car17:06
yvlspent some time discussing with menesis about upcoming release17:06
yvl(and the next one :) )17:06
yvland looked into blobs17:06
yvla short report on them:17:07
yvlwe can use them to store files on the filesystem17:07
yvland we should do that before bringing uploadable content like photos in17:07
yvlthey are not wired in in z3c.form, only formlib, so it will take some dev time17:07
yvland we should definitely use that to store big reports in the future17:08
yvlblobs are quite transparent17:08
yvljust store a big data chunk in a class attribute17:08
yvland later use links to the atribute, like '../persons/photo/inline'17:09
yvlor '../persons/report/download'17:09
th1aWould the .pdf's be directly readable from the file system?17:09
yvlyes, but only Zope will find them17:09
yvlthey'll be (most likely) stored in 8 level folders17:10
yvlA/F/1/4/2/C/3 ...17:10
yvland I noticed we can add our own naming, if necessary17:10
yvlZODB has some extendibility17:11
th1aThat's ok, it would just be silly if it was done in a way that they couldn't also be recovered in a disaster scenario.17:11
yvlso we can have Reports/Student5/Foo.pdf if we really really need that17:11
replaceafillyvl, wow nice feature :)17:11
replaceafill(the naming thing)17:11
yvlbut we would need to write that!17:11
yvlit's just a plugging point17:11
*** dadeng has joined #schooltool17:12
yvlin case of disaster...17:12
yvlwell, if the naming scheme is not changed, it will be very hard to fish data out17:13
yvlin case the original database is lost17:13
th1aIt doesn't have to be easy, but possible is good.17:13
yvlobject ids go in the Data.fs, files on the file system17:13
th1aIt isn't a big deal.17:13
yvlok17:13
yvlwell, bascally that's it17:14
th1aI was just checking to make sure this wasn't implemented in an implausibly stupid way.17:14
yvlthat's why I checked that last week :)17:14
th1aAlways good to check.  ;-)17:14
th1ayvl:  Just stay focused on finishing timetables, please!17:14
yvlwanted to know if there is integration with z3c.form, or if we need extra dependencies, etc...17:14
yvlok, th1a17:15
yvlthat's my report.17:15
th1aThanks yvl.17:16
th1amenesis?17:16
menesisas of today17:16
menesisall zope packages we need are available in Natty!17:16
menesisI have installed Natty over the weekend17:17
menesisand they all install without errors17:17
menesisLast week I uploaded the last 24 or so packages, so they went through quickly17:18
th1a!17:18
th1aYay!17:18
th1aGreat job menesis.17:18
menesisto be exact, one package still needs work, that is zope.html17:19
menesisit includes both fckeditor and ckeditor, but they are available in ubuntu17:19
menesisso those packages should be used17:19
th1aah.17:19
menesisI fiddled with that on Friday, but did not finish.17:20
menesiswill probably make a new zope.html release with updated versions17:21
menesisalso, I have updated ztk 1.0 versions to what I have packaged in Natty17:21
menesisbroke ztk buildbots, but fixed the next day17:22
menesis...17:23
menesiswhat else17:23
menesistried to build schooltool docs using Sphinx17:23
menesisthat was quite easy, also uses the same style as book17:24
menesisfixed some places where rendering was incorrect17:24
menesisbut spent only two hours on this17:25
th1aAh!17:25
th1aYes... I'd love to see those.17:25
menesisI would like to make developer docs available because we *have* documentation but don't use it17:26
th1aPlease!17:26
replaceafillplease++ :D17:26
th1aIt can just be part of the book.17:26
menesisit is developer documentation17:27
menesisalso is generated from different source17:27
menesiswould like to publish it at docs.schooltool.or17:28
menesisbut it is not my priority at the moment..17:28
yvland buildbotted for ST 1.X, 1X+2, etc ;)17:28
menesisjust played with that to know is possible17:29
th1aWell, just stick it somewhere on the web server where I can see it for now, please.17:30
th1aJust jam it in a subdirectory.17:30
menesisok17:30
menesisalso last week merged replaceafill's branch, explained some bzr features, ...17:31
menesisand that's all17:31
th1aThanks, menesis!17:31
th1aOK, let's see...17:31
th1aaelkner:  I just noticed that it is supposed to snow hard Tuesday night through Wednesday.17:32
th1aSo I'd say we're looking at Friday at earliest for a visit.17:32
aelknerah17:32
aelkneri don't have plan for the weekend if you think that would be better17:32
aelknerobviously the steelers are playing17:32
th1aNo... weekends when you have two little kids are pretty much work time.  ;-)17:32
aelknerunderstood17:33
aelknernext week?17:33
th1aWe'll see.17:33
th1aThe storm may be a dud.17:33
aelknerbag of gravel?17:34
th1aThat's good for traction.17:34
aelkner:)17:34
th1aA couple more things... bonuses.17:34
th1amenesis:  I guess we should just say for you have everything up to SchoolTool itself ready for SchoolTool feature freeze in 3.5 weeks?17:35
th1aFeb. 3.17:35
menesisyes that's my goal17:35
th1aOK, I'll send an email to that effect.17:35
th1areplaceafill:  If you could come up with a list of merge-related tasks for your bonus, that would be good.17:36
th1athat is, things to prep from the local versions.17:36
replaceafillth1a, ah ok17:36
th1aalso, replaceafill:  I have a request to throw up a demo server for someone.  I'll forward it to you.17:37
th1aSo if you could do that and perhaps kill any unused ones lying around.17:38
replaceafillmark's demo?17:38
th1aThis would just be a stock SchoolTool.17:38
th1aYeah, you could take that down I'd imagine.17:38
replaceafillok i will17:38
replaceafillaelkner, you have a niepa instance running in our VM, correct?17:39
aelkneryeah, but nobody is using it17:39
replaceafilland the zambia package is also running17:40
dadengwho said so?17:40
aelkneri haven't updated it either17:40
aelknerdadeng, hey17:40
dadengaelkner17:40
aelkneri thought you are using the sandbox on your local machine?17:40
th1areplaceafill, I think you can take that down too.17:40
dadengok, u mean the instance on vm?17:40
aelknerth1a, take what down?17:40
dadengok, i ignored that qualification17:40
aelknerdadeng, yes17:40
th1aaelkner, dadeng:  Did your conversation jump here from another room?17:41
dadengbut really we'll soon need it if it is available17:41
th1aWe're almost done anyhow.17:41
aelknerno17:41
aelknerdadeng just showed up now17:41
th1aOK... as long as you guys are making sense to each other.  ;-)17:41
dadengyes, i jumped in when u talked about niepa17:42
th1aOh, I see.17:42
th1aAnyhow...17:42
th1aSo it is F-6.17:42
th1aSix and a half weeks until Ubuntu feature freeze.17:42
th1aDon't forget!17:42
dadengi'll allow aelkner to finish with the other conversation b4 i make my request17:42
th1aHave a great week gentlemen!17:43
* th1a drops the bag of gravel.17:43
replaceafillthanks everybody17:43
th1ahi dadeng.  ;-)17:43
dadenghey th1a17:43
aelkneryvl, replaceafill can we meet to discuss limit_keys after th1a and dadeng are done?17:43
th1aoH, replaceafill -- I need your December invoice.17:43
yvlok, aelkner17:44
replaceafillaelkner, sure17:44
replaceafillth1a, i sent it to you last week17:45
replaceafillor didnt i...?17:45
dadength1a we're still working on capturing all small bugs in demo for niepa b4 i send email to u17:45
dadengon some requirements that came up at the last stakeholders' meeting17:45
replaceafillth1a, Tuesday, January 4, 201117:45
th1areplaceafill:  I don't see it.17:45
th1aOH.17:45
th1aThere it is.17:46
replaceafill:D17:46
th1adadeng:  Sounds good.17:46
dadengi also saw the UNICEF education specialist to discuss the draft budget for states17:47
dadengand he raised some issues17:47
dadengbut i'll clarify that soon and get back to u17:47
dadengi'm yet to send the budget to state17:47
th1aOK.17:48
dadengbut it is all positive issues from project management point of view17:48
aelkneryvl, replaceafill, so, limit_keys17:53
aelknerwhen i added the Choice field for the value type of the List17:53
aelknerit yielded that widget with the arrows17:53
aelknerwhen i changed the list to be a Set, it creates the multi-select17:54
aelknertwo things:17:54
aelknerfirst, i prefer the multi-select because it's simpler17:54
aelknersecond, in the case of limit_keys, the field really should be a set anyway17:55
aelknerbecause a demo can be for students and teachers17:55
aelknerbut it needn't be able to have teachers twice, it doesn't mean anyting17:55
aelknerso i think the multi-select is just what we need17:56
replaceafillaelkner, you can tell the list widget to be 'unique'17:56
replaceafillList(..., unique=True)17:56
yvl:)17:56
aelknerhmm17:56
yvlwell, a set makes sense there17:56
replaceafillyvl, if a Set() is used for the field, the form will return a list object with the data, correct?17:56
aelknerreplaceafill, what's your feeling about the multi-select?17:56
yvl(and the widget with the arrows is fidgety... it even pops javascript alerts!)17:56
aelknerreplaceafill, yes, that is what is happenng17:57
replaceafillaelkner, i'd rather checkboxes :)17:57
yvlwell, if you use Set, it will create sets17:57
replaceafillaelkner, also sets are not 'as easy' to update as list :P17:57
replaceafillright yvl?17:58
replaceafilli mean, 'easier' maybe is not the right word17:58
replaceafillmylist.append(value)17:58
aelknerso with the checkboxes, how do i get them to render?17:58
yvlmyset.add(value) ?17:58
replaceafillyvl, yeah same thing :D17:58
replaceafilli guess i'm just not used to sets...17:58
yvlaelkner, you can set z3c.form.browser.checkbox.CheckboxFieldWidget as the custom widget17:59
yvl(CheckBoxFieldWidget)17:59
aelknercan it be used with a List?17:59
yvlthe answer is maybe18:00
replaceafilli remember i've used checbox with lists18:00
yvlthe data converters should work18:01
yvlbut I can't vouch for it18:01
yvlyep18:02
yvlcollectionType = self.field._type18:02
yvlreturn collectionType(values)18:02
yvl(from z3c/form/converter.py)18:02
yvl(I like data converters... at least these days ;) )18:04
aelkneryvl, could you expain please?18:04
aelknerexplain18:04
* replaceafill wishes he understands them :(18:04
yvlwell, you have fields and widgets18:05
yvlwidget values are one thing, field values - another18:05
yvl(probably all) "sequence" widgets are implemented with vocabularies18:05
yvland there are separate converters, that can convert field (List, Set, ...) values to widget values18:06
yvlfor example -18:07
yvlyou have TextLinesConverter, defined in z3c/form/converters.py18:07
yvlit adapts zope.schema.interfaces.ISequence and interfaces.ITextLinesWidget18:07
yvlso if you have a field that inherits sequence... say a zope.schema.List18:08
yvland set the text lines widget to it18:08
yvlit will use this particular converter18:08
yvl(TextLinesConverter.toWidgetValue, and TextLinesConverter.toFieldValue18:09
yvltoWidgetValue does this: u'\n'.join(unicode(v) for v in value)18:09
yvland there you go - a list converted to text :)18:09
yvltoFieldValue does this eventually: collectionType(valueType(v) for v in value.splitlines())18:10
yvlwhich in this example is:18:10
yvllist(valueType(v) for v in value.splitlines())18:10
replaceafillah, that's the one used in the ethnicity demographics widget, correct?18:10
yvlyes18:10
replaceafillah!18:10
replaceafilland the '\n' in  return u'\n'.join(unicode(v) for v in value) is what it breaks displays18:11
replaceafillbecause the browser needs <br/>18:11
replaceafillright18:11
aelknerso...18:11
yvlso, setting the checkbox widget should work with List :)18:12
aelknerit did!18:12
aelknerand checkoxes are way better than the multi-slect18:12
aelkneri prefer using list since the class value is already that type18:13
aelknerso getting back to the interface18:13
aelknerright now i have the hard-coded list of choices where i need a vocabulary, right?18:14
yvlyes18:14
aelkneryou mentioned that in your note, but i wasn't sure about the details of inserting the vocabulary18:14
aelkneri need to create a class for the vocab?18:15
yvlwell, you have many choices there, sadly :)18:15
yvlI preferred this one:18:15
yvlregister the vocabulary utility:18:16
yvl  <utility18:16
yvl     factory=".level.levelVocabularyFactory"18:16
yvl     provides="zope.schema.interfaces.IVocabularyFactory"18:16
yvl     name="schooltool.level.level.levelvocabulary" />18:16
yvlthen use that name in your choice field18:16
*** dadeng has quit IRC18:16
aelkneryvl, i need to use a vocab utility from the level package?18:17
*** dadeng has joined #schooltool18:17
replaceafillaelkner, schooltool.app.utils18:17
yvlno, you'll need to write a new one18:17
yvlgimme time ;)18:17
replaceafillTitledContainerItemVocabulary18:17
aelknersorry18:17
yvlso, you'll need to specify source="schooltool.something.keys_to_limit_vocabulary"18:18
yvlnote - source, not vocabulary18:18
yvlthe util itself shoud look something like this:18:19
aelknerinstead of values_list, right?18:19
yvl...18:19
aelkneri mean values=18:19
yvlyes18:19
aelknerad i can use the level vocab as an example18:19
yvl[wiring code...]18:20
replaceafillman, yvl wires on the fly!18:20
aelknerthing is yvl, if you could paste a diff now and again, we could see the magic your cooking up18:21
yvldef LimitKeyVocabFactory():18:21
yvl  def getKeyVocab(context):18:21
yvl     schooltool.app.utils.vocabulary([18:21
yvl        ('teachers', _('Teachers'),18:21
yvl        ('also_teachers', _('Also Teachers'),18:21
yvl        ])18:21
yvl  return getKeyVocab()18:21
yvlI ment writing :D18:21
yvloh sorry18:22
yvlit should read:18:22
yvlreturn getKeyVocab18:22
yvl[making a paste...]18:24
aelknerthanks18:24
yvlhttp://pastebin.com/xQrnhC1818:26
yvlI'd like to have something like this,18:27
replaceafillyvl, what's the advantage of using the source def there instead of the vocabulary class18:28
yvlwe can change the utility and use any vocabulary we want in a customized app18:28
replaceafillah, indirection?18:28
yvlb) we can easily change "def getKeyVocab(context)" part to IDemographicsKeysToLimit(context)18:29
yvland merge person and resource "demographics" fields to schooltool.additional_fields or something18:30
replaceafilldemo fields will be used to extend any object_18:30
yvland then of course we can go wild, and register additional_fields for course ;)18:30
replaceafillah!18:30
*** dadeng has quit IRC18:31
aelkneryvl, thanks for that, now the second issue18:31
yvlmy pleasure :)18:31
aelknerwe need the vocabulary to be different in the case of resource demographic fields18:31
aelknerthe problem comes down to the views as well18:32
aelknerIResourceDemogpahicFields exists18:32
aelknerwhich is the derived from IDemogpahicFields but marks the other container18:32
aelkneradding a field to that container, however, adds an IFieldDescription18:33
aelknerso the vocab would contain students, etc18:33
aelknerinstead of location, etc,18:34
yvl[annotating paste...]18:35
replaceafill:|18:35
aelknerwhen he's hot, he's hot :)18:35
aelknerreplaceafill, btw, [doing something...] seems to be yvl's convention, not a bad way of indicating it18:37
replaceafillyou mean like [talking to aelkner...]?18:38
replaceafill:D18:38
aelknerwell, i wouldn't go that far :)18:38
yvlthere: http://pastebin.com/K5AvQwpC18:40
yvllots of adapters, yay :)18:41
replaceafillnice!18:41
yvlyou know, it would be even better like this (updated)18:43
aelknercool, so the vocab itself figures out what the items are based on the adapted context18:43
yvlyes18:44
yvlwell, the adapter figures out the vocabulary to use18:44
aelknerthat's what i meant :)18:45
yvl:)18:45
aelknercould you push your changes to your own demo_fields branch in you folder please?18:46
yvlthese are Notepad - coded :)18:46
aelkneroh, never mind18:46
aelkneri can work from them18:46
yvlcool18:46
yvlone more thing - if you want some sugar on top of it :)18:47
yvlyou could make the adapters to IFieldFilterVocabulary named adapters18:47
yvladapt (IDemographicsFields, IFieldDescription) and name == field_description.unique_name18:48
yvlso that you could change a list for a single field :))18:48
yvlbut that may be a bit over the top ;)18:49
aelknerbtw, why would it work to adapt the fields containers18:49
aelknerwhen it is adding/editing the field itself that the vocab is needed?18:50
aelknersorry, never mind18:50
aelkneri see it again in the code, just lost my train of thought18:50
aelkneryeah, i'll table the named adapters idea since it's not strickly needed18:51
yvlsure!18:51
aelkneri'll respond to the email thread tonight if i have a problem18:52
aelknerthanks again yvl18:53
yvlmy pleasure, aelkner  :)18:53
replaceafillnice work yvl18:53
yvlwell, happy coding! ;)18:54
aelknernice that we have someone who understands this stuff that well18:54
yvlby coincidence, this is right in my job description ;D18:55
yvlbut seriously - always happy to help :)18:56
*** alga has quit IRC19:20
*** menesis has quit IRC19:20
*** jelkner has quit IRC19:43
*** menesis has joined #schooltool20:18
*** alga has joined #schooltool20:40
replaceafillth1a, is it a bug that we show two tabs for school years? one of them being really small...20:57
th1aDifferent years?20:58
replaceafillyes20:58
replaceafillshouldn't we only show the active?20:58
replaceafillwait20:59
replaceafillthis only happens for the manager!20:59
th1aYes.20:59
replaceafillah20:59
th1aThat was by design, although it is perhaps not the best design.20:59
replaceafilleven the small font?20:59
th1aWell... yes... it seemed like a good idea at the time.21:00
replaceafill:)21:00
replaceafillok, not a bug then ;)21:00
th1aIt is the kind of thing that leads to larger changes.21:01
*** replaceafill has quit IRC22:51
*** replaceafill has joined #schooltool23:56

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