IRC log of #zope3-dev for Friday, 2008-09-19

*** benji has quit IRC00:02
*** whit has joined #zope3-dev00:05
*** timte_ has quit IRC00:09
*** timte has joined #zope3-dev00:10
*** thibault has joined #zope3-dev00:10
*** fxcp has joined #zope3-dev00:19
*** fxcp has quit IRC00:21
*** fxcp has joined #zope3-dev00:21
*** norro has joined #zope3-dev00:28
*** ktwilight has quit IRC00:32
*** ktwilight has joined #zope3-dev00:37
*** thibault has left #zope3-dev00:39
*** thibault has joined #zope3-dev00:40
*** alga has joined #zope3-dev00:40
*** ktwilight has quit IRC00:40
*** ktwilight has joined #zope3-dev00:43
*** fxcp has quit IRC00:44
*** fxcp has joined #zope3-dev00:44
*** fxcp has quit IRC00:45
*** fxcp has joined #zope3-dev00:46
*** elro has quit IRC00:51
*** whit has quit IRC00:55
*** thibault has quit IRC00:56
*** timte has quit IRC00:56
*** whit has joined #zope3-dev01:02
*** sp0cksbeard has quit IRC01:03
*** quodt has quit IRC01:05
*** b52lap has quit IRC01:09
*** dobee has quit IRC01:11
*** nyo has quit IRC01:14
*** aclark|away is now known as aclark01:18
*** sunew has joined #zope3-dev01:21
*** elro has joined #zope3-dev01:22
*** malthe has quit IRC01:26
*** greenman has quit IRC01:27
*** jamur2 has quit IRC01:28
*** yota has quit IRC01:31
*** b52laptop has joined #zope3-dev01:32
*** lurkymclurkleton has quit IRC01:35
*** J1m has quit IRC01:36
*** norro has quit IRC01:36
*** basti_ has quit IRC01:36
*** sm has quit IRC01:44
*** elro has quit IRC02:16
*** nathany has quit IRC02:20
*** rmarianski has quit IRC02:21
*** whit has quit IRC02:22
*** flox has left #zope3-dev02:22
*** sunew has quit IRC02:26
*** natea_ has joined #zope3-dev02:29
*** agroszer has quit IRC02:39
*** philiKON_ has quit IRC02:41
*** natea_ has quit IRC02:42
*** alga has quit IRC02:49
*** bigkevmcd has quit IRC02:51
*** aaronv has quit IRC03:07
*** natea_ has joined #zope3-dev03:23
*** natea_ has quit IRC03:24
*** sm has joined #zope3-dev03:28
*** natea_ has joined #zope3-dev03:43
*** natea_ has joined #zope3-dev03:54
*** natea_ has quit IRC03:58
*** santagada_ has quit IRC04:08
*** greenman has joined #zope3-dev04:11
*** natea_ has joined #zope3-dev04:17
*** natea_ has quit IRC04:18
*** natea_ has joined #zope3-dev04:33
*** natea_ has quit IRC04:34
*** sm has quit IRC04:34
*** natea_ has joined #zope3-dev04:37
*** natea_ has quit IRC04:38
*** natea_ has joined #zope3-dev04:47
*** natea_ has quit IRC04:49
*** natea_ has joined #zope3-dev04:52
*** natea_ has quit IRC04:54
*** natea_ has joined #zope3-dev04:59
*** natea_ has joined #zope3-dev05:02
*** natea_ has joined #zope3-dev05:11
*** natea_ has joined #zope3-dev05:11
*** natea_ has quit IRC05:12
*** natea_ has joined #zope3-dev05:15
*** natea_ has joined #zope3-dev05:16
*** natea__ has joined #zope3-dev05:16
*** natea_ has quit IRC05:17
*** natea__ has quit IRC05:17
*** natea_ has joined #zope3-dev05:18
*** natea_ has quit IRC05:19
*** natea_ has joined #zope3-dev05:19
*** natea_ has quit IRC05:20
*** natea_ has joined #zope3-dev05:22
*** natea__ has joined #zope3-dev05:24
*** natea__ has quit IRC05:25
*** natea__ has joined #zope3-dev05:25
*** natea__ has quit IRC05:28
*** natea__ has joined #zope3-dev05:29
*** natea__ has quit IRC05:30
*** natea__ has joined #zope3-dev05:32
*** natea__ has quit IRC05:35
*** natea_ has joined #zope3-dev05:36
*** natea_ has quit IRC05:37
*** natea_ has joined #zope3-dev05:49
*** natea_ has quit IRC05:56
*** binseer has joined #zope3-dev06:02
*** natea_ has joined #zope3-dev06:07
*** natea_ has quit IRC06:08
*** b52laptop has quit IRC06:24
*** natea_ has joined #zope3-dev06:28
*** natea_ has quit IRC06:29
*** natea_ has joined #zope3-dev06:32
*** natea_ has joined #zope3-dev06:33
*** natea_ has joined #zope3-dev06:34
*** thibault has joined #zope3-dev06:36
*** natea_ has quit IRC06:38
*** natea_ has joined #zope3-dev06:39
*** thibault has quit IRC06:40
*** natea_ has quit IRC06:42
*** natea_ has joined #zope3-dev06:42
*** natea_ has quit IRC06:46
*** natea_ has joined #zope3-dev06:47
*** sm has joined #zope3-dev06:52
*** redir has joined #zope3-dev06:59
*** redir has quit IRC07:14
*** fairwinds has quit IRC07:14
*** natea_ has joined #zope3-dev07:17
*** natea_ has quit IRC07:19
*** natea_ has joined #zope3-dev07:23
*** natea_ has joined #zope3-dev07:44
*** natea_ has quit IRC07:46
*** strichter has quit IRC07:46
*** strichter has joined #zope3-dev07:47
*** strichter is now known as trichter07:47
*** trichter is now known as srichter07:47
*** ChanServ sets mode: +o srichter07:47
*** dobee has joined #zope3-dev07:56
*** greenman has quit IRC07:59
*** natea_ has joined #zope3-dev08:00
*** natea_ has quit IRC08:01
*** natea_ has joined #zope3-dev08:09
*** natea__ has joined #zope3-dev08:11
*** sm has quit IRC08:13
*** jukart has joined #zope3-dev08:15
*** jayaraj has joined #zope3-dev08:19
*** MiUlEr has joined #zope3-dev08:24
*** kursor has joined #zope3-dev08:25
*** kursor has joined #zope3-dev08:26
*** jayaraj has quit IRC08:52
*** jayaraj has joined #zope3-dev08:53
*** tarek_ has quit IRC09:04
*** tarek_ has joined #zope3-dev09:04
*** __mac__ has joined #zope3-dev09:06
*** natea_ has quit IRC09:09
*** afd_ has joined #zope3-dev09:27
*** ktwilight_ has joined #zope3-dev09:40
*** ktwilight has quit IRC09:53
*** quodt has joined #zope3-dev09:55
*** flox has joined #zope3-dev10:11
*** junkafarian has joined #zope3-dev10:23
*** projekt01 has joined #zope3-dev10:32
*** MJ has joined #zope3-dev10:36
*** philiKON has joined #zope3-dev10:46
*** pyqwer has joined #zope3-dev11:29
*** nyo has joined #zope3-dev11:39
*** nyo has quit IRC11:41
*** nyo has joined #zope3-dev11:41
*** goschtl has joined #zope3-dev11:42
*** Mebibyte has quit IRC11:51
pyqwerprojekt01: Hi, a short question: I'm looking for a solution where an E-Mail field should be split up into multiple input fields, therefore I thought about creating/registering a widget for that - are you aware of any example for that I can have a look at?12:01
projekt01pyqwer, no12:05
projekt01pyqwer, do you store them in different fields or do you like to store them as one email address and only do this in the form?12:06
pyqwerprojekt01: I have one email field, but the email should have a specific format, foo.MANDATORY@xyz12:07
pyqwerSo I thought about multiple input fields that are concatenated/splitted to one field.12:08
pyqwerAh, multiple <input> widgets.12:08
projekt01you can write a widget and a datavoncerter which does the assembling12:08
projekt01datavonceter/dataconverter12:09
pyqwerprojekt01: So, it's possible/recommended, but you're not aware of an example.12:09
projekt01possible yes, recommended no, no example12:09
pyqwerprojekt01: Ok, so what would you recommend ;-)12:09
projekt01I don't recommend it because it's too much work ;-)12:10
projekt01just us z3c.schema.email field which does what you need12:10
pyqwerprojekt01: It does?12:11
projekt01you can then add a custom validator which does custom validation12:11
projekt01it uses just one field12:11
projekt01why do you need 3 fields for an email input?12:11
pyqwerI see. Hmmm, a validator would also be an option, right.12:11
projekt01that's not common to have a 3 inout field email address12:12
pyqwerWell, simply for convenience, similar to an "amount" field for online banking, which can also be represented by two input fields (pre-comma / post-comma).12:12
projekt01you can add additional methods based on the email field if you need to get the domain12:12
projekt01I hate such inut fields, that is against usability standards12:13
pyqwerprojekt01: But I think you are right, a simple validator is much easier and the extra work may not pay off after all.12:13
pyqwerprojekt01: Thanks for help!12:14
projekt01np12:14
*** junkafarian is now known as junk|home12:18
*** elro has joined #zope3-dev12:21
*** greenman has joined #zope3-dev12:32
*** alga has joined #zope3-dev12:36
*** junkafarian has joined #zope3-dev12:50
*** wolfe has quit IRC12:57
*** basti_ has joined #zope3-dev12:59
*** alga has quit IRC13:04
*** alga has joined #zope3-dev13:13
nyohmm.. i have a question about z3c.form :) Is there any way to easily override widget's "required". Looks like it's only possible to override "name", "label" and "default" using IValue adapters, but what about "required"? srichter?13:16
goschtlnyo: you can maybe do this in your interface definition?13:18
srichtermhh, I thought I did make it settable13:18
srichterif not, I am open for proposals/patches13:18
nyogoschtl: yeah, that's an option, but I just wanted to use the same schema in many websites and in some of them I want to set some fields of that schema to "required" without creating new schema :)13:19
nyosrichter: i'll look at it13:19
projekt01optional required info is also on my todo list13:20
nyosrichter: i wonder if it's enough to just set it in the "update" method of the widget...13:20
projekt01it shuold check additional for at least one required field too13:21
projekt01nyo, no there is no condition in the form template, you have to use a custom form template and implement it there right now13:22
projekt01nyo, I'm talking about the global require info in the form, do you mean the require flag for each widget?13:23
nyoprojekt01: are you talking about "required info" in formui default template?13:23
nyoprojekt01: no, I was talking about overriding one widget's "required" attribute for some website13:23
*** regebro has joined #zope3-dev13:24
projekt01the widget is conditional and it works within the require attribute based on the schema field13:24
projekt01if this is not overrideable, we should change it13:24
nyoprojekt01: yeah, I just wanted to override "required" attribute for widget, whose field is not required13:24
nyoprojekt01: I thought it was as easy as providing "required" adapter like  "StaticWidgetAttribute(True, field=someField, required=someLayer)"13:25
nyobut looks like it's not like that yet)13:25
projekt01but the form should be aware of such overrides and also not display the require info if no widget is required13:25
nyoprojekt01: that's another question13:25
nyoprojekt01: but yes)13:25
projekt01this could be done in or after updateWidgets probably13:26
nyoprojekt01: yep, but it's better to have it in z3c.form itself I think13:26
projekt01the reuqire info should also be overrideable independent from the widget require flags13:26
projekt01yes13:26
projekt01I'm talking about to enhance z3c.form, this is usable for anybody13:27
projekt01Can you add branche for that?13:27
projekt01I'll help you if you have questions13:28
projekt01But we need a branch because there is some lxml work in the trunk going on13:29
*** dobee has quit IRC13:33
*** philiKON has quit IRC13:37
*** flox has left #zope3-dev13:46
*** baijum has joined #zope3-dev13:51
*** MJ is now known as MJ|lunch13:54
*** greenman has quit IRC14:11
*** zagy has quit IRC14:15
*** redir has joined #zope3-dev14:26
*** sunew has joined #zope3-dev14:33
*** MJ|lunch is now known as MJ14:41
*** tflorac has joined #zope3-dev14:41
*** alga has quit IRC14:42
*** zagy has joined #zope3-dev14:44
*** redir has quit IRC14:46
*** dobee has joined #zope3-dev15:07
*** Theuni has joined #zope3-dev15:09
*** natea_ has joined #zope3-dev15:10
*** natea_ has quit IRC15:11
*** __mac__ has quit IRC15:12
*** harobed has joined #zope3-dev15:14
*** __mac__ has joined #zope3-dev15:15
*** benji has joined #zope3-dev15:16
*** natea_ has joined #zope3-dev15:24
*** aaronv has joined #zope3-dev15:27
*** J1m has joined #zope3-dev15:27
*** natea_ has quit IRC15:28
*** bigkevmcd has joined #zope3-dev15:44
*** santagada has joined #zope3-dev15:51
*** ccomb has joined #zope3-dev15:51
*** lurkymclurkleton has joined #zope3-dev15:52
*** b52laptop has joined #zope3-dev15:52
*** zagy has quit IRC15:55
*** tflorac has quit IRC15:55
*** natea_ has joined #zope3-dev15:57
*** jamur2 has joined #zope3-dev16:00
*** binseer has quit IRC16:00
*** santagada has left #zope3-dev16:00
*** aaronv is now known as aaronvanderlip16:05
*** aaronvanderlip is now known as aaronv16:10
*** zagy has joined #zope3-dev16:10
*** natea_ has quit IRC16:13
*** alga has joined #zope3-dev16:13
*** jamur2 has quit IRC16:14
*** jamur2 has joined #zope3-dev16:14
*** sp0cksbeard has joined #zope3-dev16:22
nyosrichter: the z3c.form's widget.txt says that any widget attributes can be overrided by IValue adapter, but in reality, user can only override "default" and attributes listed in "_adapterValueAttributes" class variable (which is ('label', 'name') for most of widgets (SelectWidget also adds 'promptMessage' and 'noValueMessage')). So, user can't override (for example) size or maxlen attributes of TextInput widget, or the "required" attribute of any widg16:23
nyosrichter: Is this some kind of unfinished task? I wonder what is the best way to fix this. I guess the classes that define additional attributes could update the _adapterValueAttributes in their "update" method before everything.16:23
srichterI probably thought it was too hard for the other attributes or not necessary16:24
*** ignas has joined #zope3-dev16:25
*** Theuni has quit IRC16:25
nyosrichter: well, today I needed to override the "required" method so I finally had to change the schema and that's not very handy ;-/16:26
srichterright16:26
srichterfeel free to check in a fix16:27
nyosrichter: okay, then I'll prepare a fix that also dynamically adds other attribute names (like size, maxlen, cols, rows for HTMLFormElements) to that variable.16:28
*** baijum has quit IRC16:28
srichterjust make sure the dependency structure does not break16:29
srichteroh, btw, for the HTML stuff you can always use the widget directly16:30
nyosrichter: what dependency structure16:30
srichterI usually use updateWidgets() as a hook to do justifications after the fact16:30
srichterI think that does not work with required16:30
nyosrichter: the thing is that I didn't want to override the form, but provide some custom attributes for some widgets in some browser layer :)16:31
srichterwell, some of the widget stuff is HTML independent, so you do not want to list attributes at that point16:31
srichterright16:31
nyosrichter: ah, that's ok, I'll be careful :)16:31
nyogrrr.. I can't buildout z3c.form's trunk because it cannot find zope.i18n 3.5.0 :-/16:32
*** agroszer has joined #zope3-dev16:33
*** mgedmin has joined #zope3-dev16:34
srichtermmh, that sounds strange16:34
*** basti_ has quit IRC16:34
nyosrichter: yep)16:36
nyohm, works now. I guess it was my local troubles)16:41
*** Pan__ has joined #zope3-dev16:45
*** Pan_ has quit IRC16:45
*** gimni has joined #zope3-dev16:45
*** thruflo has joined #zope3-dev16:46
*** ccomb has quit IRC16:48
*** Jell-O-Fishi has quit IRC16:49
*** ktwilight_ has quit IRC16:51
*** ktwilight_ has joined #zope3-dev16:51
*** __mac__ has quit IRC16:54
*** dobee has quit IRC16:59
*** agroszer has quit IRC16:59
*** agroszer_ has joined #zope3-dev16:59
*** sm has joined #zope3-dev17:00
*** tarek_ has left #zope3-dev17:10
*** tarek has joined #zope3-dev17:10
*** jsadjohnson has joined #zope3-dev17:14
*** ktwilight_ has quit IRC17:14
*** jhauser has joined #zope3-dev17:14
*** ktwilight_ has joined #zope3-dev17:15
*** romanofski has quit IRC17:22
*** J1m_ has joined #zope3-dev17:25
*** afd_ has quit IRC17:29
*** jayaraj_ has joined #zope3-dev17:32
*** J1m has quit IRC17:36
*** jayaraj__ has joined #zope3-dev17:39
*** agroszer_ has quit IRC17:44
*** jayaraj has quit IRC17:46
*** basti_ has joined #zope3-dev17:48
*** gimni has quit IRC17:52
*** goschtl has quit IRC17:57
*** afd_ has joined #zope3-dev17:57
*** jayaraj_ has quit IRC17:58
*** kursor has quit IRC18:01
*** quodt has quit IRC18:02
*** ccomb has joined #zope3-dev18:03
*** agroszer has joined #zope3-dev18:11
*** nyo has quit IRC18:17
*** rmarianski has joined #zope3-dev18:20
*** jsadjohnson has quit IRC18:20
*** jayaraj__ has quit IRC18:22
*** norro has joined #zope3-dev18:22
*** dvschramm has joined #zope3-dev18:31
*** zagy has quit IRC18:31
*** sm has quit IRC18:32
*** agroszer_ has joined #zope3-dev18:35
*** agroszer has quit IRC18:36
*** ccomb has quit IRC18:36
*** harobed has quit IRC18:36
*** projekt01 has quit IRC18:36
*** andres has quit IRC18:36
*** rocky has quit IRC18:36
*** dobee has joined #zope3-dev18:41
*** agroszer has joined #zope3-dev18:42
*** ccomb has joined #zope3-dev18:42
*** harobed has joined #zope3-dev18:42
*** projekt01 has joined #zope3-dev18:42
*** rocky has joined #zope3-dev18:42
*** andres has joined #zope3-dev18:42
*** harobed has quit IRC18:43
*** benji is now known as Guest465918:45
*** benji_ has joined #zope3-dev18:45
*** kiorky has quit IRC18:45
*** Guest4659 has quit IRC18:46
*** sunew has quit IRC18:46
*** kiorky has joined #zope3-dev18:47
*** agroszer has quit IRC18:49
*** rocky has quit IRC18:50
*** harobed has joined #zope3-dev18:51
*** andres_f has joined #zope3-dev18:51
*** rocky has joined #zope3-dev18:51
*** andres has quit IRC18:51
*** andres_f is now known as andres18:51
*** projekt01 has quit IRC18:53
*** whit has joined #zope3-dev18:59
*** pyqwer has quit IRC19:02
*** sm has joined #zope3-dev19:06
*** thruflo has quit IRC19:11
*** reco has quit IRC19:14
*** tarek has quit IRC19:16
*** natea_ has joined #zope3-dev19:18
*** tarek has joined #zope3-dev19:19
*** reco has joined #zope3-dev19:20
*** tarek has quit IRC19:22
*** zagy has joined #zope3-dev19:22
*** agroszer_ is now known as agroszer19:26
*** dobee has quit IRC19:28
*** MJ has quit IRC19:29
*** mgedmin has quit IRC19:31
*** malthe has joined #zope3-dev19:31
*** malthe2 has joined #zope3-dev19:33
*** jsadjohnson has joined #zope3-dev19:36
*** dobee has joined #zope3-dev19:38
*** jukart has quit IRC19:39
*** alecm has joined #zope3-dev19:44
*** basti_ has quit IRC19:45
*** reco has quit IRC19:49
*** reco has joined #zope3-dev19:51
*** malthe has quit IRC19:54
*** benji_ has quit IRC19:55
*** jhauser has quit IRC19:58
*** malthe2 has quit IRC19:59
*** yotaff_ has joined #zope3-dev20:02
*** yotaff_ has quit IRC20:04
*** redir has joined #zope3-dev20:05
*** natea_ has quit IRC20:05
*** redir_ has joined #zope3-dev20:05
*** redir has quit IRC20:05
*** redir_ is now known as redir20:06
*** norro has quit IRC20:07
*** reedobrien has joined #zope3-dev20:07
*** yotaff has quit IRC20:17
*** benji has joined #zope3-dev20:17
*** redir has quit IRC20:28
*** tarek has joined #zope3-dev20:29
*** tarek has quit IRC20:30
*** redir has joined #zope3-dev20:31
*** nyo has joined #zope3-dev20:31
*** afd_ has quit IRC20:35
*** elro has quit IRC20:35
*** aaronv has quit IRC20:39
*** alecm has quit IRC20:49
*** dbfrombrc|away has quit IRC20:49
*** benji has quit IRC20:52
*** bigkevmcd has quit IRC20:53
*** alecm has joined #zope3-dev21:00
*** junkafarian has quit IRC21:02
*** romanofski has joined #zope3-dev21:02
*** harobed has quit IRC21:07
*** bigkevmcd has joined #zope3-dev21:09
*** benji has joined #zope3-dev21:17
*** ignas has quit IRC21:20
*** seletz has joined #zope3-dev21:22
*** dobee has quit IRC21:29
*** danfairs has quit IRC21:35
*** flox has joined #zope3-dev21:45
*** danfairs has joined #zope3-dev21:48
*** tarek has joined #zope3-dev21:49
*** tarek has quit IRC21:51
*** alga_ has joined #zope3-dev21:53
*** reco has quit IRC21:55
*** reco has joined #zope3-dev22:00
*** danfairs has quit IRC22:02
*** seletz has quit IRC22:02
*** seletz has joined #zope3-dev22:03
*** timte has joined #zope3-dev22:03
*** andres is now known as andrezZz22:08
*** andrezZz is now known as andres22:08
*** srichter has quit IRC22:09
*** alga has quit IRC22:10
*** malthe has joined #zope3-dev22:12
*** mgedmin has joined #zope3-dev22:13
*** agroszer has quit IRC22:16
*** malthe has quit IRC22:22
*** malthe has joined #zope3-dev22:22
*** dvschramm has quit IRC22:28
*** aaronv has joined #zope3-dev22:30
*** srichter has joined #zope3-dev22:32
*** srichter has quit IRC22:34
*** natea_ has joined #zope3-dev22:41
*** natea_ has quit IRC22:43
*** yota has joined #zope3-dev22:44
*** alecm has quit IRC22:46
*** srichter has joined #zope3-dev22:49
*** alecm has joined #zope3-dev22:50
*** tarek has joined #zope3-dev22:57
*** srichter has quit IRC23:00
*** srichter has joined #zope3-dev23:00
*** seletz_ has joined #zope3-dev23:05
*** seletz has quit IRC23:05
*** seletz_ has quit IRC23:05
*** seletz has joined #zope3-dev23:05
*** regebro has quit IRC23:09
*** norro_ has joined #zope3-dev23:22
*** romanofski has quit IRC23:25
*** seletz has quit IRC23:30
*** dbfrombrc has joined #zope3-dev23:40
*** srichter has quit IRC23:43
*** flox has left #zope3-dev23:59

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