IRC log of #zope3-dev for Friday, 2008-08-29

*** aclark|away is now known as aclark00:02
*** dobee has joined #zope3-dev00:20
*** norro has quit IRC00:26
*** basti_ has quit IRC00:35
*** redir has quit IRC00:38
*** timte has quit IRC00:52
*** timte has joined #zope3-dev00:54
*** redir has joined #zope3-dev00:56
*** brandon_rhodes has quit IRC00:58
*** benji has quit IRC01:02
*** timte has quit IRC01:02
*** redir has quit IRC01:03
malthesrichter: in z3c.form.button, you zope.traversing.api.traverse to the button image01:05
malthehmm I guess that's the only way to do it for all possible resource paths01:05
malthez3c.form pulls in the world01:06
srichteris zope.traversing doing the complete pull-in?01:11
srichtermalthe: I tried to stay very minimal01:11
srichterlike you do not need the rotterdam or old form framework stuff01:11
*** harobed has quit IRC01:12
malthesrichter: it pulls in 52 packages01:14
malthebut zope.traversing is not the culprit01:14
srichterthat's actually less than the default set01:14
srichterwhich is about 76 packages01:14
maltheright hehe01:14
*** sp0cksbeard has quit IRC01:15
*** lurkymclurkleton has quit IRC01:18
*** quodt has quit IRC01:22
*** lucielejard_ has quit IRC01:26
*** dobee has quit IRC01:31
*** redir has joined #zope3-dev01:42
*** flox has quit IRC01:42
*** nathany has quit IRC01:45
*** projekt01 has joined #zope3-dev01:46
projekt01srichter, ayt?01:47
projekt01srichter, the source branch in z3c.form needs a lot of conceptual work.01:48
projekt01right now it's based on
projekt01that's a no go for us01:48
srichterprojekt01: here01:51
srichterok, then let's not merge it01:52
projekt01just like to let you know that I need some time to refactor the source part01:52
srichteryep, I got your E-mail01:52
projekt01what do you think to change the lookup ITerms discriminator signature?01:52
projekt01def __init__(self, context, request, form, field, widget):01:53
projekt01def __init__(self, context, request, form, field, source, widget):01:53
srichterI have to review the implementation to have an opinion, but it makes sense01:53
projekt01I think tha's not a bad idea, but not compatible01:54
srichterI know01:54
projekt01I will do some work on that tomorrow, probably start a new branch and start from scratch01:54
srichterI think we will be doing a 2.0.0 release anyways01:54
projekt01till then you can review my multi widget ;-)01:55
projekt01yes 2.0 sounds good to me01:55
srichteryep, will do01:55
*** aaronv has quit IRC02:02
*** srichter has quit IRC02:09
*** projekt01 has left #zope3-dev02:09
*** malthe is now known as malthe|Zzz02:09
*** rmarianski has quit IRC02:12
*** jodok has quit IRC02:12
*** mgedmin has quit IRC02:14
*** ignas has quit IRC02:43
*** yota has quit IRC02:59
*** greenman has quit IRC03:14
*** reco has quit IRC03:16
*** ARiKA has quit IRC03:17
*** b52laptop has quit IRC03:25
*** redir has quit IRC03:53
*** yvl has quit IRC04:12
*** fcorrea has quit IRC04:29
*** greenman has joined #zope3-dev04:44
*** fcorrea has joined #zope3-dev04:52
*** greenman has quit IRC05:38
*** ktwilight has joined #zope3-dev05:42
*** greenman has joined #zope3-dev05:47
*** ktwilight_ has quit IRC05:57
*** srichter has joined #zope3-dev06:15
*** binseer has joined #zope3-dev06:57
*** gberdyshev has joined #zope3-dev07:04
*** gberdyshev has quit IRC07:04
*** afd_ has joined #zope3-dev07:15
*** greenman has quit IRC08:00
*** kursor_ has joined #zope3-dev08:37
*** jayaraj has joined #zope3-dev08:40
*** ChanServ sets mode: +o srichter08:42
*** dobee has joined #zope3-dev08:45
*** redir has joined #zope3-dev08:48
*** redir has quit IRC08:49
*** jukart has joined #zope3-dev08:50
*** __mac__ has joined #zope3-dev09:01
*** tarek has joined #zope3-dev09:11
*** malthe|Zzz is now known as malthe09:32
*** mustap has joined #zope3-dev09:38
*** malthe has quit IRC09:53
*** basti_ has joined #zope3-dev09:53
*** goschtl has joined #zope3-dev10:06
*** greenman has joined #zope3-dev10:07
*** __mac___ has joined #zope3-dev10:07
*** quodt has joined #zope3-dev10:16
*** goschtl_ has joined #zope3-dev10:21
*** jodok has joined #zope3-dev10:22
*** __mac__ has quit IRC10:24
*** greenman has quit IRC10:26
*** ccomb_ has joined #zope3-dev10:29
*** goschtl has quit IRC10:31
*** quodt has quit IRC10:36
*** quodt has joined #zope3-dev10:42
*** pyqwer has joined #zope3-dev10:43
*** quodt has quit IRC10:55
*** __mac___ has quit IRC10:58
*** harobed has joined #zope3-dev10:58
*** __mac__ has joined #zope3-dev11:04
*** b52laptop has joined #zope3-dev11:07
*** ktwilight_ has joined #zope3-dev11:21
*** goschtl has joined #zope3-dev11:27
*** goschtl__ has joined #zope3-dev11:32
*** __mac___ has joined #zope3-dev11:34
*** ktwilight has quit IRC11:35
*** greenman has joined #zope3-dev11:37
*** goschtl___ has joined #zope3-dev11:45
*** goschtl_ has quit IRC11:45
*** goschtl has quit IRC11:49
*** elro has joined #zope3-dev11:51
*** __mac__ has quit IRC11:51
*** agroszer has joined #zope3-dev11:53
*** markusleist has joined #zope3-dev11:58
*** afd__ has joined #zope3-dev11:58
*** alga has joined #zope3-dev12:00
*** goschtl__ has quit IRC12:02
*** afd_ has quit IRC12:02
*** goschtl has joined #zope3-dev12:10
*** markusleist has quit IRC12:12
*** goschtl___ has quit IRC12:19
*** flox has joined #zope3-dev12:22
*** markusleist has joined #zope3-dev12:30
*** timte has joined #zope3-dev12:42
*** kursor_ has quit IRC13:00
*** projekt01 has joined #zope3-dev13:01
*** __gotcha has joined #zope3-dev13:03
*** malthe has joined #zope3-dev13:13
*** tarek has quit IRC13:14
*** tarek has joined #zope3-dev13:23
*** greenman has quit IRC13:24
*** stub has joined #zope3-dev13:24
*** junkafarian_ has joined #zope3-dev13:25
*** yvl has joined #zope3-dev13:29
*** malthe has quit IRC13:33
*** kursor has joined #zope3-dev13:36
*** junkafarian_ is now known as junkafarian13:38
*** malthe has joined #zope3-dev14:18
*** malthe has quit IRC14:29
*** yotaff has quit IRC14:39
*** ignas has joined #zope3-dev14:39
*** ccomb_ has quit IRC14:40
*** ktwilight_ has quit IRC14:41
*** mustap has left #zope3-dev14:42
*** harobed has quit IRC14:45
*** basti_ has quit IRC14:46
*** malthe has joined #zope3-dev14:50
*** stub has quit IRC14:51
*** afd____ has joined #zope3-dev14:51
*** kursor has quit IRC14:53
*** jodok has quit IRC15:03
*** J1m has joined #zope3-dev15:04
*** afd__ has quit IRC15:04
J1mTheuni, ayt?15:07
*** fairwinds has joined #zope3-dev15:13
*** redir has joined #zope3-dev15:15
*** basti_ has joined #zope3-dev15:15
TheuniJ1m: i am15:15
J1mI fond the problem with the file descriptors.15:18
J1mI found the problem with the file descriptors.15:18
J1mI'll be checking in a fix soon.15:18
J1mI introduced a trigger leak when I got rid of ThreadedAsync.15:18
*** benji has joined #zope3-dev15:20
*** harobed has joined #zope3-dev15:26
*** dunny has quit IRC15:26
TheuniJ1m: i posted a proposal for a fix on the zodb list yesterday too15:40
Theunii wonder whether I found the same thing15:40
Theuniah. there's your checkin.15:42
J1mYup, you did.15:43
Theunijust a different way you solved it15:43
Theunimy understanding was too localized for the right thing15:43
J1mI solved it slightly differently, and addressed another annoyance at the same time.15:43
TheuniI expected this. :)15:43
J1mIt's to bad I couldn't communicate after Wednesday afternoon.15:44
TheuniThat happens.15:44
TheuniI think it wasn't that bad for me too have a look at that code.15:44
J1mYeah, at least I had svk so I could work on it.15:44
Theuni Actually15:47
TheuniI changed something very different15:47
TheuniI found the ManagedClientConnection to be leaking15:47
Theuniyou fixed the server connection15:47
TheuniI wonder why this helps ...15:47
J1mNo, I removed the trigger creation from the base class.15:48
J1mSo the shared triggers are each created in the subclasses.15:48
J1mand now I see another bug.15:50
Theuniah. i got you. i didn't understand the base class exactly.15:57
Theunibut i understand your fix now.15:57
Theunigotta go afk for a while15:57
*** lurkymclurkleton has joined #zope3-dev16:02
projekt01J1m, Theuni, can you read my ISource mail and give short comment on that? Topic: Make simple ISource usable16:03
pyqwerprojekt01: Ah, hi, I just received your mail, interesting, thanks, although I don't get everything.16:07
projekt01pyquery, me too right now ;-)16:08
pyqwerAh, but, I ment the missing_value thing, and not the ISource...16:09
projekt01Ah, I see16:09
pyqwerYou write: But what means input for the field?16:09
pyqwerThis is defined in:16:09
pyqwerThat means everything except 'foo' is input.16:09
pyqwerBut doesn't mean that everything is valid input.16:09
pyqwerAnd in schema.interfaces I read:16:10
pyqwer    missing_value = Field(16:10
pyqwer        title=_(u"Missing Value"),16:10
pyqwer        description=_(u"""If input for this Field is missing, and that's ok,16:10
pyqwer                          then this is the value to use""")16:10
pyqwerPerhaps I don't get it, or this contradicts your mail?16:11
pyqwerFrom schema.interfaces, missing_value looks like an alternative to default.16:11
projekt01if the field returns missing_value, then the default value get used16:11
projekt01missing_value is a marker to indicate that default should get used16:12
*** aaronv has joined #zope3-dev16:13
projekt01the field has otherwise (without missing_value) no change to know what to return16:13
*** ktenney has joined #zope3-dev16:13
projekt01or let's say the field has no chance to know *when* to return the default16:13
pyqwerprojekt01: Hmmm, ok, so, what happens for TextLine(missing_value='foo') and someone inputs 'foo' - what is returned then?16:14
projekt01the widget makrs that as missing value16:14
*** redir has quit IRC16:14
projekt01but only if required=True16:15
projekt01if required=False nothing get stored16:15
projekt01that's the magic of missing_value and required16:15
projekt01often is None or u'' (empty string) used as missing_value.16:17
pyqwerOk, I understand, I was somehow confused by the interface description.16:17
pyqwerSo, a boolean field may have the values "False, True, MISSING_VALUE".16:18
pyqwer(Whereas I assumed that a missing value would be outlined by None).16:19
projekt01if you have to tweak arround with missing_value, then the z3c.form data converter is also an important part. Because a dataconverter converts an empty string to a missing_value16:19
pyqwerI see.16:20
pyqwerWell, but this missing_value may be outside the type for certain data types. (E.g. Boolean, Integer...)16:21
projekt01A Bool missing_value is None16:21
projekt01A Bool default should not be None16:21
*** lucielejard has joined #zope3-dev16:22
pyqwerYes, I understand, as this violates the boolean data type.16:22
projekt01Yes, the missing_value must not be a valid type16:22
projekt01But the default should16:22
projekt01It's also possible to use a none valid default16:23
pyqwerThe entire discussion was about what an unchecked checkbox should return: True, False or missing_value (=None).16:23
projekt01Bool(default=None, missing_value=None) this indicates that no value was set and default returns16:24
projekt01True, False or default schould retrurned16:24
projekt01the missing_value get never ever returned in any usecase16:25
pyqwerHow can it return "default"? A checkbox can be either ticked or unticked but it can't be missing?16:25
projekt01you only can ask the field about it's missing_value, that is what form framework will do and they use the default if a missing_value compares to the given value16:25
projekt01Yes, that's why default_None for Bool is a bad idea, it should be vaild input e.g. True or False, nothing else16:26
projekt01I think its simple a Bool field can only provide True or False but not None, that's python. Any tweak arround that restriction at widget level is a none usecase16:28
pyqwerYes, that's true.16:29
projekt01You just have to use a Choice (collection of True/False, "not selected probably None") for your field16:29
pyqwerThe point of the discussion was whether an unchecked checkbox for a required Bool field should return False or raise an error.16:29
projekt01Choice(values[True, False, None], default=None, missing_value=u'')16:30
projekt01Then you can write a custom widget which plays with that values16:30
projekt01e.g. you can use JavaScript and only show radio input with yes/no ad make a selected ready input unselectable16:31
pyqwerYes, for example.16:31
projekt01or simply use a drop down like it should by default16:31
pyqwerThe original poster wanted to do some multiple-choice with checkboxes, whereas if no choice is checked, it should raise an error.16:32
projekt01multi checkbox or one from all?16:33
projekt01pyqwer, do you mean a IList of IChoice, right?16:33
pyqwerMulti checkbox, I think, but I did also not fully understand the requirements.16:33
pyqwerYes, that's probably a solution.16:34
projekt01for a IList of IChoice you have to use min_leght=1 for indicate at least one choice from collection16:34
pyqwerAh, yes, I see. Btw., I'm looking for a good solution for editing a list of objects (objects having e.g. 3 TextLine fields).16:35
*** redir has joined #zope3-dev16:35
pyqwerIs there some suggested widget available for that?16:36
projekt01I commited that yesterday to the z3c.form trunk16:36
projekt01there are two solutions16:36
pyqwerprojekt01: Ah, *that* was the reason for that many updates :-)16:36
projekt01look at new files in and multi.py16:36
projekt01the new TextLines widget can be used as a IList of ITextLine or IList of IPassword etc. then you will get a textarea which represents each line as item16:37
projekt01you need to use that widget explcit in your form16:38
pyqwerSo, I have to register it, I assume.16:38
projekt01by default the MultiWidget is used and renders a subform with sub widgets for the given value_type with nice Add and Remove buttons for them16:38
pyqwerI have an IList(MyObject) where MyObject has to textlines (e.g. name1, name2).16:40
projekt01pyquer, just try it out and you can see what happens IList and ITuple should work withihn the newest trunk out of the box with z3c.form now16:40
projekt01pyqwer, IObject are not supported right now16:40
pyqwerPerhaps I could convert my object into a list...16:41
projekt01But you can use z3c.table and return the sequence16:41
projekt01But that's bad, we should support a IObject widget16:41
pyqwerI'll have a look at it and report back, many thanks for your effort!16:41
*** alga has quit IRC16:42
pyqwerBtw., I have another little problem: I tried to set my form to DISPLAY_MODE by simply setting "mode=interfaces.DISPLAY_MODE", but that doesn't seem to work?16:42
projekt01where did you set it?16:43
pyqwerThe widgets remain input widgets.16:43
*** ktwilight has joined #zope3-dev16:43
pyqwerWell, I inherited my own form from form.form /form.EditForm and set it there.16:43
pyqwerIf I inherit from DisplayForm, it works (but there are other shortcomings which are solved by form.Form).16:43
pyqwerFor instance, I'd like to have a button that does a redirect in my form, hence, DisplayForm is of no use to me.16:44
projekt01that must work because updateWidgets in form does self.widgets.mode = self.mode16:45
projekt01did you override the updateWidgets and lost the super call?16:45
* pyqwer looks...16:45
projekt01See line 12216:45
pyqwerNo, I did not.16:46
pyqwerBut "mode" is intended for that, isn't it?16:46
projekt01this 100% works by default, must be something overriden16:47
pyqwerprojekt01: Btw., I also stuck my nose into the code and I came to this line, but "self" is not the form class, here, I think.16:47
projekt01that's a bad form setup, did you use some kind of sub form setup from another view class?16:48
pyqwerprojekt01: Ah! Yes, I used a subform.16:48
projekt01if self at line 122 in isn't the form some bad things happend16:49
projekt01because it is a method of the form class and self must get overriden16:49
pyqwerYes, right, I found a similar line in another file. (, maybe).16:50
pyqwerBut maybe the reason is my subform, I'll have to check that out, thanks for the hint!16:50
pyqwerprojekt01: Oh my, dead simple: I had a subform and forgot to change the mode there. And I don't have any widgets in the parent form, so I didn't see an effect. :-|16:53
*** __gotcha has quit IRC16:54
pyqwerprojekt01: Thanks!16:54
*** __mac___ has quit IRC16:56
*** hazmat has joined #zope3-dev17:01
*** ChanServ sets mode: +o hazmat17:01
hazmatis there some reason zc.recipe.egg disappeared from svn?17:02
*** pyqwer has quit IRC17:07
*** basti_ has joined #zope3-dev17:07
*** aclark is now known as aclark|away17:19
*** zagy has quit IRC17:19
*** natea_ has joined #zope3-dev17:22
*** romanofski has quit IRC17:23
*** ccomb_ has joined #zope3-dev17:23
*** yotaff has joined #zope3-dev17:24
*** mgedmin has joined #zope3-dev17:27
*** nathany has joined #zope3-dev17:27
*** nathany has quit IRC17:28
*** nathany_ has joined #zope3-dev17:28
*** jayaraj has quit IRC17:34
*** basti_ has quit IRC17:35
*** nathany_ is now known as nathany17:35
*** binseer has quit IRC17:36
*** sunew has joined #zope3-dev17:40
*** sp0cksbeard has joined #zope3-dev17:42
*** goschtl has quit IRC17:45
*** sunew has quit IRC17:46
*** srichter has quit IRC17:49
*** gberdyshev has joined #zope3-dev17:54
*** malthe has quit IRC18:01
*** rmarianski has joined #zope3-dev18:08
*** aclark|away is now known as aclark18:08
*** srichter has joined #zope3-dev18:13
*** brandon_rhodes has joined #zope3-dev18:15
*** gberdyshev_ has joined #zope3-dev18:17
*** natea_ has quit IRC18:20
*** natea_ has joined #zope3-dev18:22
*** projekt01 has quit IRC18:23
*** jukart has quit IRC18:30
*** gberdyshev has quit IRC18:32
*** redir has quit IRC18:32
*** aaronv has quit IRC18:43
*** aaronv has joined #zope3-dev18:44
*** redir has joined #zope3-dev18:51
*** norro has joined #zope3-dev18:57
*** zagy has joined #zope3-dev19:02
*** mcdonc has quit IRC19:18
*** mcdonc has joined #zope3-dev19:18
*** junkafarian_ has joined #zope3-dev19:21
*** alga has joined #zope3-dev19:21
*** dobee has quit IRC19:26
*** junkafarian_ has quit IRC19:27
*** norro_ has joined #zope3-dev19:27
*** kursor has joined #zope3-dev19:30
*** aclark is now known as aclark|away19:34
*** malthe has joined #zope3-dev19:35
*** dvschramm has joined #zope3-dev19:36
*** dvschramm has quit IRC19:37
*** junkafarian has quit IRC19:38
*** malthe has quit IRC19:40
*** norro has quit IRC19:42
*** malthe has joined #zope3-dev19:42
*** harobed has quit IRC19:43
*** natea_ has quit IRC19:44
*** natea_ has joined #zope3-dev19:46
elroDoes anyone know who `uoestermeier' is? I need to get a new release of z3c.blobfile made.19:47
agroszerelro: Uwe Oestermeier19:50
elroagroszer: thanks, just found his email there on google19:53
*** ccomb_ has quit IRC19:55
*** flox has left #zope3-dev20:07
*** aclark|away is now known as aclark20:11
*** alecm has joined #zope3-dev20:20
*** jukart has joined #zope3-dev20:24
*** jukart has quit IRC20:41
*** elro has quit IRC20:49
*** basti_ has joined #zope3-dev20:51
*** norro_ is now known as norro20:54
*** romanofski has joined #zope3-dev20:57
*** rcrafton has joined #zope3-dev21:04
*** rcrafton has quit IRC21:05
*** basti_ has quit IRC21:10
*** agroszer has quit IRC21:10
*** srichter has quit IRC21:16
*** agroszer has joined #zope3-dev21:16
*** tarek has quit IRC21:19
*** tarek has joined #zope3-dev21:20
*** ignas has quit IRC21:24
*** natea_ is now known as natea21:27
*** tarek has quit IRC21:28
*** Jell-O-Fishi has joined #zope3-dev21:32
*** timte_ has joined #zope3-dev21:46
*** tarek has joined #zope3-dev21:52
*** timte has quit IRC22:03
*** dunny has joined #zope3-dev22:04
*** fcorrea_ has joined #zope3-dev22:10
*** dbfrombrc has quit IRC22:12
*** fcorrea has quit IRC22:15
*** afd____ has quit IRC22:23
*** kursor has quit IRC23:07
*** aaronv has quit IRC23:09
*** agroszer has quit IRC23:10
*** fcorrea_ is now known as fcorrea23:10
*** natea has quit IRC23:12
*** greenman has joined #zope3-dev23:18
*** greenman has quit IRC23:24
*** timte_ has quit IRC23:27
*** timte has joined #zope3-dev23:28
*** redir has quit IRC23:40
*** romanofski has quit IRC23:44
*** srichter has joined #zope3-dev23:48
*** ccomb has quit IRC23:55
*** ccomb has joined #zope3-dev23:57

Generated by 2.15.1 by Marius Gedminas - find it at!