replaceafill | th1a, i made a small bullet list, will turn it into a paragraph | 00:03 |
---|---|---|
replaceafill | what was the name of the gradebook + journal integration? you said it once in a meeting | 00:04 |
replaceafill | "multiple assessments per day" | 00:07 |
*** replaceafill has quit IRC | 00:43 | |
*** menesis has quit IRC | 04:07 | |
*** menesis has joined #schooltool | 04:18 | |
*** menesis has quit IRC | 04:31 | |
*** alga has quit IRC | 04:37 | |
*** aks has joined #schooltool | 05:09 | |
*** aks has joined #schooltool | 05:09 | |
*** replaceafill has joined #schooltool | 05:19 | |
*** krishnagiri has joined #schooltool | 05:24 | |
*** yvl has joined #schooltool | 06:19 | |
*** yvl has quit IRC | 06:34 | |
*** replaceafill has quit IRC | 07:10 | |
*** yvl has joined #schooltool | 07:20 | |
aelkner | hey yvl | 07:20 |
yvl | hi | 07:20 |
aelkner | did you see my last commit? | 07:21 |
yvl | not yet | 07:21 |
aelkner | i added functional tests for the resource demographics fields container | 07:21 |
aelkner | also, i had to fix the basicperson version of that view to make the title a class attribute | 07:23 |
aelkner | in order to be able to sub-class and have a different title for the resource fields | 07:23 |
yvl | ah, yes | 07:24 |
yvl | (and you added absolute url adapters, I see) | 07:25 |
yvl | by the way, why did you need <include package="schooltool.basicperson" /> | 07:26 |
yvl | in resource ftesting.zcml ? | 07:26 |
yvl | oh, sorry | 07:27 |
yvl | for the viewlets | 07:27 |
aelkner | i guess, i know it crashed int the tests until i added that, but i don't remember if that is why | 07:29 |
aelkner | obviousl i was subclassing something from that package, so... | 07:29 |
yvl | right | 07:30 |
aelkner | so now i'm working on adding the demo fields to the edit form for the three resource types | 07:31 |
aelkner | it's really old zope methodologies, i.e., registrations and formlib version | 07:33 |
yvl | that is true | 07:35 |
yvl | the package is really, really old | 07:35 |
aelkner | it's just funny to look at | 07:35 |
yvl | I'd call it 'cute' ;) | 07:37 |
aelkner | :) | 07:38 |
yvl | anyway - you can remake ResourceView / ResourceEditView to z3c.form if it's more convenient... | 07:38 |
aelkner | you know what the problem is not so infrequently? | 07:40 |
aelkner | having to clone a template, like the form macro | 07:40 |
aelkner | in order to change it to have an added fieldset | 07:40 |
aelkner | in the niepa package | 07:40 |
aelkner | i created person forms that are actually general | 07:40 |
aelkner | enough to be subclassed wherein the fieldsets are set | 07:41 |
*** th1a has quit IRC | 07:41 | |
yvl | hmm, I'll look at those, thanks | 07:42 |
aelkner | so that the same template could be used for any set of fieldssets having any set of fields | 07:42 |
yvl | I was tossing around the idea of adding schooltool.ui module | 07:42 |
aelkner | ooh, yeah | 07:42 |
yvl | and slowly moving most of the generic ui code there | 07:42 |
aelkner | let's think about creating that package at the sprint | 07:43 |
yvl | widgets, view bases, tables, etc. | 07:43 |
aelkner | and add some good base classes and template choices | 07:43 |
yvl | sure, that seems like a good topic :) | 07:43 |
aelkner | it's just such a waste of labor to keep cloning template | 07:43 |
yvl | I agree | 07:44 |
aelkner | and what's more, costly from a code maintenance point of view | 07:44 |
aelkner | ah, yes, that reminds me, i can't get schooltool.niepa to test without crashing | 07:45 |
yvl | probably we should bring short wishlists of what we want to see in the UI package to the sprint | 07:45 |
yvl | crashing how? | 07:46 |
aelkner | in the year add part of the functional test (at the beginning) | 07:46 |
aelkner | the text widget is looking for missing_input | 07:46 |
aelkner | but the context is not a widget but the actual container | 07:47 |
aelkner | which doesn't have such an attibute | 07:47 |
aelkner | i was wondering if it had to do with the schooltol trunk being newer than | 07:47 |
aelkner | what schooltool.cambodia is using (an egg?) | 07:48 |
aelkner | because the test starts the same as the cambodia one | 07:48 |
yvl | hmm | 07:48 |
aelkner | you'll need to checkout my schooltool/demo_fields schooltool in the samdbox to recreate my environment | 07:49 |
aelkner | and the buildout expects ../schooltool | 07:49 |
yvl | I remember that you enter start/end dates in the wrong format | 07:49 |
aelkner | i changed that and it didn't help | 07:49 |
yvl | 01-01-2010 instead of 2010-01-01 | 07:49 |
aelkner | it's looking for missing_input | 07:50 |
yvl | hmm, gimme a moment... | 07:50 |
yvl | Failed to execute <schooltool.niepa.app.app.NiepaAppInit object at 0x9b044ac>: __init__() got an unexpected keyword argument 'limit_group_ids' | 07:51 |
yvl | :) | 07:51 |
aelkner | let me fix that | 07:51 |
aelkner | and repush | 07:51 |
yvl | thanks :) | 07:53 |
aelkner | yvl: repushed | 08:01 |
aelkner | i'd like to have it working with the method call rather than the manual way i have commented out | 08:01 |
yvl | pulling... | 08:01 |
yvl | '2010-31-12' :) | 08:02 |
yvl | iso format is YYYY-MM-DD | 08:02 |
yvl | month 31 is invalid | 08:02 |
yvl | should be 2010-12-31 | 08:02 |
aelkner | oops, i can see that | 08:03 |
aelkner | however, why would it crash in the text widget | 08:03 |
aelkner | looking for missing_value? | 08:04 |
yvl | I'm trying to figure it out now | 08:04 |
yvl | getting near... | 08:12 |
yvl | hmm | 08:14 |
yvl | I only get it to brake in ftests | 08:15 |
aelkner | it's a sticky wicket :) | 08:25 |
yvl | :) | 08:32 |
yvl | well, it's definitely nothing you should worry about | 08:38 |
yvl | there is some really interesting weirdness happening | 08:38 |
aelkner | so is there a different version of formlib being run here? | 08:56 |
aelkner | i looked in schooltool.cambodia, and the version was different as the egg | 08:56 |
aelkner | but i'm not sure what that means | 08:56 |
aelkner | yvl: schooltool.cambodia eggs have zope.formlib-4.0.5-py2.6.egg | 08:58 |
aelkner | do you have both that and version 3.10 in the eggs? | 08:59 |
yvl | yes | 09:00 |
aelkner | i had this feeling that versions of eggs might be where the problem lies | 09:00 |
yvl | it shouldn't | 09:00 |
yvl | trunk currently requires fromlib >= 4.0 | 09:01 |
aelkner | what if a zope egg required the wrong version | 09:01 |
aelkner | i'm just reaching here, so ignore me if you think it's a red herring | 09:01 |
yvl | so, there is a whole sequence of stuff that leads to it | 09:03 |
yvl | tal condition to check if error has an assigned widget tries to __call__ it, | 09:06 |
yvl | which results in rendering | 09:06 |
yvl | rendering results in AttributeError in functional tests | 09:07 |
yvl | (in schooltool.niepa.person layer) | 09:08 |
yvl | but it results in ForbiddenAttribut in real life | 09:08 |
yvl | and that doesn't break for some reason or another | 09:08 |
aelkner | ForbiddenAttribute is covered by zcml, right? | 09:10 |
aelkner | could it be an ftesting.zcml issue? | 09:11 |
yvl | might be | 09:11 |
yvl | but this is actually an accumulation of quirks | 09:11 |
yvl | such as: | 09:12 |
yvl | it's a bad idea to use something/widget in tal condition, because it always tries to call it | 09:12 |
yvl | people should put nocall: (or however it's named) in front | 09:12 |
yvl | (and by people I meant me also) | 09:13 |
yvl | also, our custom date field widget is a hack | 09:14 |
yvl | it inherits both z3c.form TextWidget and zc.datetime...DateWidget | 09:14 |
yvl | which means that it can render itself with __call__ as all formlib widgets do | 09:14 |
yvl | or render itself as z3c.form widget | 09:15 |
yvl | and formlib widgets expect their context to be the field | 09:15 |
yvl | and content to be content | 09:15 |
yvl | z3c.form widgets work a bit differently - context is context there :) | 09:16 |
aelkner | i strange way to be different | 09:16 |
aelkner | a | 09:17 |
yvl | well, they both have their reasons | 09:17 |
aelkner | could the template use something/widget/hasInput? | 09:19 |
yvl | nah, it just wants to check if widget is None | 09:20 |
aelkner | oh | 09:20 |
yvl | but I'll probably add raise NotImplemented in __call__ of that widget | 09:20 |
yvl | it's better than ForbiddenAttribute | 09:21 |
yvl | one can spend half a day looking for reason why you can't see a page | 09:21 |
yvl | only to find out that some tal:condition accidentaly __call__s the widget | 09:21 |
aelkner | good idea | 09:22 |
aelkner | yvl: will you be making your own branch of trunk that i should then merge into mine later? | 09:50 |
yvl | yes, I'll commit it to trunk | 09:50 |
yvl | need to run all ftests, so it will take a while | 09:50 |
aelkner | in the meantime, i'll continue with the resource views | 09:52 |
aelkner | yvl: can i reach you same time tomorrow? | 10:01 |
yvl | sure | 10:02 |
aelkner | actually, ore like 1:30 for me following a holiday party | 10:02 |
aelkner | i'll ping you when i get in | 10:02 |
aelkner | going to bed, talk to you soon | 10:03 |
*** aks has quit IRC | 11:24 | |
*** krishnagiri has quit IRC | 11:24 | |
*** aks has joined #schooltool | 11:25 | |
*** aks has quit IRC | 11:25 | |
*** aks has joined #schooltool | 11:25 | |
*** krishnagiri has joined #schooltool | 11:25 | |
*** menesis has joined #schooltool | 12:35 | |
*** krishnagiri has quit IRC | 12:42 | |
*** aks has quit IRC | 12:42 | |
*** krishnagiri has joined #schooltool | 12:52 | |
*** krishnagiri has left #schooltool | 12:54 | |
*** Aiste has joined #schooltool | 13:22 | |
*** alga has joined #schooltool | 13:56 | |
*** ignas has joined #schooltool | 14:08 | |
*** menesis has quit IRC | 14:29 | |
*** grantbow has quit IRC | 14:44 | |
*** ignas has quit IRC | 14:47 | |
*** grantbow has joined #schooltool | 14:51 | |
*** ignas has joined #schooltool | 15:04 | |
*** menesis has joined #schooltool | 15:23 | |
*** th1a has joined #schooltool | 15:50 | |
*** alga has quit IRC | 16:54 | |
*** menesis has quit IRC | 17:31 | |
*** menesis has joined #schooltool | 17:32 | |
*** replaceafill has joined #schooltool | 18:08 | |
*** menesis has quit IRC | 18:28 | |
*** replaceafill has quit IRC | 18:38 | |
*** replaceafill has joined #schooltool | 18:48 | |
*** ignas has quit IRC | 18:48 | |
*** Aiste has quit IRC | 18:52 | |
*** menesis has joined #schooltool | 19:08 | |
*** menesis has quit IRC | 19:55 | |
*** replaceafill has quit IRC | 20:00 | |
*** dogi has quit IRC | 20:04 | |
*** ignas has joined #schooltool | 20:16 | |
*** menesis has joined #schooltool | 21:37 | |
*** replaceafill has joined #schooltool | 22:09 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!