*** alecm has joined #zope3-dev | 00:24 | |
*** norro has quit IRC | 00:37 | |
*** alecm_ has quit IRC | 00:40 | |
*** malthe has joined #zope3-dev | 00:42 | |
*** philiKON_ has quit IRC | 00:48 | |
*** hexsprite has quit IRC | 01:01 | |
*** afd_ has quit IRC | 01:07 | |
*** afd_ has joined #zope3-dev | 01:07 | |
*** gstratton_ has joined #zope3-dev | 01:31 | |
*** gstratton has quit IRC | 01:39 | |
*** pelle_ has quit IRC | 01:50 | |
*** malthe has quit IRC | 01:51 | |
*** gstratton_ has quit IRC | 02:40 | |
*** gstratton has joined #zope3-dev | 02:42 | |
*** quodt has quit IRC | 02:56 | |
*** alecm has quit IRC | 03:38 | |
*** alecm has joined #zope3-dev | 03:38 | |
*** alecm_ has joined #zope3-dev | 03:42 | |
*** alecm has quit IRC | 03:42 | |
*** b52laptop has quit IRC | 04:10 | |
*** benji has joined #zope3-dev | 04:10 | |
*** huajie has joined #zope3-dev | 04:22 | |
*** Ariel_Calzada has quit IRC | 04:41 | |
*** alecm has joined #zope3-dev | 05:38 | |
*** alecm_ has quit IRC | 05:54 | |
*** [1]Doc_Dan has joined #zope3-dev | 06:39 | |
*** hexsprite has joined #zope3-dev | 06:48 | |
*** Doc_Dan has quit IRC | 06:57 | |
*** [1]Doc_Dan is now known as Doc_Dan | 06:57 | |
*** hexsprite has quit IRC | 07:20 | |
*** baijum has joined #zope3-dev | 07:34 | |
*** romanofski has joined #zope3-dev | 07:52 | |
romanofski | moin :) | 07:53 |
---|---|---|
*** d2m has joined #zope3-dev | 08:07 | |
*** markusleist has quit IRC | 08:14 | |
*** zagy has quit IRC | 08:31 | |
*** cursor has joined #zope3-dev | 08:46 | |
*** Jell-O-Fishi has quit IRC | 08:47 | |
*** jukart has joined #zope3-dev | 08:55 | |
*** timte has quit IRC | 08:59 | |
*** andres has quit IRC | 08:59 | |
*** zagy has joined #zope3-dev | 09:07 | |
*** sorin has joined #zope3-dev | 09:11 | |
*** sorin is now known as sorindregan | 09:12 | |
*** philiKON has joined #zope3-dev | 09:12 | |
*** alecm has quit IRC | 09:12 | |
*** schwendinger has joined #zope3-dev | 09:18 | |
*** schwendinger has quit IRC | 09:20 | |
*** jfroche has joined #zope3-dev | 09:24 | |
*** schwendinger has joined #zope3-dev | 09:29 | |
*** timte has joined #zope3-dev | 09:32 | |
*** dobee has joined #zope3-dev | 10:02 | |
*** afd_ has quit IRC | 10:08 | |
*** malthe has joined #zope3-dev | 10:15 | |
*** pelle_ has joined #zope3-dev | 10:19 | |
*** afd_ has joined #zope3-dev | 10:20 | |
*** davidstryker has joined #zope3-dev | 10:23 | |
*** davidstryker has left #zope3-dev | 10:24 | |
*** harobed has joined #zope3-dev | 10:29 | |
*** ccomb has joined #zope3-dev | 10:43 | |
*** quodt has joined #zope3-dev | 10:46 | |
timte | Is there a recipe that copies a file to the bin directory? | 10:53 |
*** quodt has quit IRC | 11:00 | |
*** quodt has joined #zope3-dev | 11:12 | |
*** regebro has joined #zope3-dev | 11:12 | |
*** malthe has quit IRC | 11:19 | |
*** bigkevmcd has joined #zope3-dev | 11:21 | |
*** gstratton has quit IRC | 11:29 | |
*** ignas has joined #zope3-dev | 11:34 | |
* baijum updated his Zope component architecture article (now a book!) : http://www.muthukadan.net/docs/zca.pdf | 11:44 | |
*** salfield has quit IRC | 12:01 | |
*** MJ has joined #zope3-dev | 12:02 | |
*** afd_ has quit IRC | 12:05 | |
*** afd_ has joined #zope3-dev | 12:06 | |
*** harobed has quit IRC | 12:14 | |
*** thruflo has joined #zope3-dev | 12:27 | |
*** dunny has quit IRC | 12:28 | |
*** mkerrin has joined #zope3-dev | 12:32 | |
*** b52laptop has joined #zope3-dev | 12:39 | |
*** BjornT has joined #zope3-dev | 12:40 | |
*** edgordon has joined #zope3-dev | 12:47 | |
*** salfield has joined #zope3-dev | 12:47 | |
*** malthe has joined #zope3-dev | 12:50 | |
*** MJ has quit IRC | 12:53 | |
*** MJ has joined #zope3-dev | 12:57 | |
*** deo has joined #zope3-dev | 13:00 | |
*** huajie has quit IRC | 13:35 | |
*** Ariel_Calzada has joined #zope3-dev | 13:39 | |
malthe | anyone mind taking a look at http://paste.plone.org/17463 ––– what kind of test machinery would not allow this? | 13:40 |
philiKON | malthe: your adapter factory returns None | 13:44 |
philiKON | that is treated like failed adaption | 13:44 |
malthe | doh –– stupid example then; I'm trying to scale down a multi-adapter registration that really does fail. | 13:45 |
philiKON | you're adapting from Interface to INterface... possible, but a stupid example :) | 13:47 |
malthe | philiKON: yes indeed; hopefully (or actually not) I'll be able to construct an example that really does demonstrate that something's fishy. | 13:50 |
philiKON | i'd be surprised :) | 13:50 |
* philiKON afk | 13:50 | |
malthe | yes it's very unlikely | 13:50 |
malthe | we shall see shortly | 13:51 |
*** chacha_chaudhry has joined #zope3-dev | 13:51 | |
*** rocky has joined #zope3-dev | 13:51 | |
*** ignas has quit IRC | 13:52 | |
*** zagy_ has joined #zope3-dev | 13:57 | |
malthe | philiKON: I've located the source of my issue ––– I'm running this setUp-method to set up five.intid –– http://paste.plone.org/17466 | 13:58 |
malthe | that appearently screws things uo | 13:58 |
malthe | must leave; i'll check back in a bit | 13:59 |
*** malthe has quit IRC | 13:59 | |
*** projekt01 has joined #zope3-dev | 14:06 | |
*** hexsprite has joined #zope3-dev | 14:10 | |
*** regebro has left #zope3-dev | 14:14 | |
*** MJ is now known as MJ|lunch | 14:14 | |
*** zagy has quit IRC | 14:15 | |
*** benji has quit IRC | 14:16 | |
*** zagy_ has quit IRC | 14:18 | |
*** zagy has joined #zope3-dev | 14:18 | |
*** afd_ has quit IRC | 14:24 | |
*** edgordon_ has joined #zope3-dev | 14:27 | |
*** bigkevmcd has quit IRC | 14:28 | |
*** niemeyer has joined #zope3-dev | 14:28 | |
*** pelle_ has quit IRC | 14:29 | |
*** edgordon has quit IRC | 14:30 | |
*** pelle_ has joined #zope3-dev | 14:41 | |
*** Aiste_ has quit IRC | 14:42 | |
*** jsadjohnson has joined #zope3-dev | 14:43 | |
*** mgedmin has joined #zope3-dev | 14:43 | |
*** Aiste has joined #zope3-dev | 14:46 | |
*** chacha_chaudhry has quit IRC | 14:47 | |
*** tarek has joined #zope3-dev | 14:51 | |
*** MJ|lunch is now known as MJ | 14:56 | |
jsadjohnson | Good morning. | 15:01 |
*** Ariel_Calzada has quit IRC | 15:02 | |
*** afd_ has joined #zope3-dev | 15:07 | |
*** malthe has joined #zope3-dev | 15:11 | |
malthe | philiKON: sorry –– had to depart; anyway, appearently there's something in the test setup that messes up the ca | 15:13 |
*** benji has joined #zope3-dev | 15:16 | |
*** regebro has joined #zope3-dev | 15:17 | |
*** pyqwer has joined #zope3-dev | 15:21 | |
jsadjohnson | Anyone familiar with PAU? | 15:22 |
*** hexsprite has quit IRC | 15:24 | |
*** edgordon has joined #zope3-dev | 15:29 | |
*** xbeanx has joined #zope3-dev | 15:30 | |
*** edgordon_ has quit IRC | 15:30 | |
*** Doc_Dan has quit IRC | 15:32 | |
*** stub has joined #zope3-dev | 15:39 | |
*** edgordon has quit IRC | 15:42 | |
*** malthe has quit IRC | 15:51 | |
*** jsadjohnson has left #zope3-dev | 15:58 | |
*** hexsprite has joined #zope3-dev | 15:58 | |
*** whit has joined #zope3-dev | 15:59 | |
*** xbeanx has left #zope3-dev | 16:04 | |
*** Doc_Dan has joined #zope3-dev | 16:04 | |
*** philiKON_ has joined #zope3-dev | 16:06 | |
*** malthe has joined #zope3-dev | 16:09 | |
*** stub has quit IRC | 16:10 | |
*** rcrafton has joined #zope3-dev | 16:17 | |
*** hexsprite has quit IRC | 16:20 | |
*** philiKON has quit IRC | 16:23 | |
*** zagy_ has joined #zope3-dev | 16:25 | |
*** zagy has quit IRC | 16:25 | |
*** cursor has quit IRC | 16:27 | |
*** J1m has joined #zope3-dev | 16:28 | |
*** edgordon has joined #zope3-dev | 16:29 | |
*** chacha_chaudhry has joined #zope3-dev | 16:29 | |
*** goschtl has joined #zope3-dev | 16:30 | |
*** agroszer has joined #zope3-dev | 16:35 | |
*** Doc_Dan has quit IRC | 16:39 | |
*** alga has joined #zope3-dev | 16:54 | |
*** ignas has joined #zope3-dev | 16:56 | |
*** pelle_ has quit IRC | 17:03 | |
*** harobed has joined #zope3-dev | 17:04 | |
*** baijum has quit IRC | 17:11 | |
*** alga has quit IRC | 17:20 | |
*** sorindregan has quit IRC | 17:22 | |
*** malthe has quit IRC | 17:31 | |
*** malthe has joined #zope3-dev | 17:32 | |
*** aclark|away is now known as aclark | 17:35 | |
*** MacYET has joined #zope3-dev | 17:39 | |
*** MacYET has left #zope3-dev | 17:39 | |
*** MacYET has joined #zope3-dev | 17:39 | |
MacYET | hi, is it possible to get hold of the zodb root object within a doctest? | 17:40 |
zagy_ | getRootFolder() | 17:40 |
*** zagy_ is now known as zagy | 17:40 | |
MacYET | this also applies to zope2? :) | 17:40 |
* zagy points to the channel name | 17:41 | |
*** markusleist has joined #zope3-dev | 17:41 | |
*** chacha_chaudhry has quit IRC | 17:42 | |
*** MacYET has left #zope3-dev | 17:45 | |
*** malthe has quit IRC | 17:55 | |
*** RaFromBRC has joined #zope3-dev | 18:01 | |
*** alecm has joined #zope3-dev | 18:03 | |
*** WebMaven has joined #zope3-dev | 18:04 | |
*** djk001 has joined #zope3-dev | 18:05 | |
*** hazmat has quit IRC | 18:08 | |
*** rmarianski has joined #zope3-dev | 18:08 | |
*** replicant has joined #zope3-dev | 18:08 | |
*** hazmat has joined #zope3-dev | 18:08 | |
*** ChanServ sets mode: +o hazmat | 18:08 | |
*** rmarianski has quit IRC | 18:09 | |
*** rmarianski has joined #zope3-dev | 18:09 | |
*** afd__ has joined #zope3-dev | 18:10 | |
*** zagy has quit IRC | 18:12 | |
djk001 | Hello. I have a question on using the Object Field in Schemas.I set a property to be an Object and set the schema. In the implmentation I validate it with a field property. However, when I assign that property and object that implments the schema. I get the wrong type error. So how do you use the schema attribute from the object field??? | 18:20 |
*** bigkev has joined #zope3-dev | 18:21 | |
*** bigkev is now known as bigkevmcd | 18:23 | |
*** deo has quit IRC | 18:25 | |
*** norro has joined #zope3-dev | 18:27 | |
hazmat | is there any way to turn off the zope 3 security policy globally? | 18:30 |
*** goschtl has quit IRC | 18:30 | |
hazmat | i've removed the root security proxy from the app publication, but security proxies seem to be injected in multiple places | 18:31 |
ignas | hazmat: zc.configure and "exclude" it? | 18:31 |
ignas | oh | 18:31 |
ignas | secutity proxies | 18:31 |
ignas | these are 2 separate things | 18:31 |
ignas | security proxy is one thing | 18:31 |
hazmat | well configuring a permissive policy would also work... | 18:31 |
ignas | while security policy is another one | 18:31 |
ignas | so just set permissions Zope.view on everything ;) | 18:32 |
ignas | and give Zope.view to unauthenticated users | 18:32 |
ignas | you might have to grant Zope.manage and etc. to unauthenticated users if you are using vanilla Zope3 objects like BTrees though | 18:33 |
hazmat | unfortunately that doesn't seem to work in this case | 18:35 |
hazmat | incidentally neither does the ZOPE_WATCH_CHECKERS environment | 18:36 |
hazmat | variable | 18:36 |
ignas | <grant | 18:36 |
ignas | role="zope.Manager" | 18:36 |
ignas | principal="zope.anybody" | 18:36 |
ignas | /> | 18:36 |
ignas | ? | 18:36 |
ignas | everyone should be able to do *anything* | 18:37 |
ignas | anything includes packing ZODB, and shutting down the server ;) | 18:37 |
*** reco has joined #zope3-dev | 18:38 | |
*** reco has joined #zope3-dev | 18:38 | |
djk001 | Any Help on my schema issue? I'd like to validate that what I assign to a property of a class is actually an instance of the correct interface? It looked like schemas were the correct way to do this, but it doesn't seem to work without using real inheritace. | 18:39 |
*** timte has quit IRC | 18:39 | |
*** rcrafton has quit IRC | 18:40 | |
hazmat | ignas, unfortunately not in this case.. | 18:40 |
ignas | lisppaste6: url | 18:41 |
lisppaste6 | To use the lisppaste bot, visit http://paste.lisp.org/new/zope3-dev and enter your paste. | 18:41 |
ignas | post your principals.zcml in here | 18:41 |
ignas | and the unauthenticated error traceback that you are getting if you get any | 18:42 |
hazmat | <grant role="zope.Manager" | 18:42 |
hazmat | principal="zope.Anybody" /> | 18:42 |
ignas | emm "anybody" not Anybody | 18:42 |
hazmat | ignas, it gets swallowed up ( part of the menu_item.avaiable() check | 18:42 |
ignas | might help | 18:42 |
hazmat | thats the principle zopeproject is using by default.. | 18:43 |
*** rcrafton has joined #zope3-dev | 18:43 | |
ignas | could you post whole principals.zcml to lisppaste please | 18:43 |
ignas | and zope.Anybody is a group by default | 18:43 |
ignas | not unauthenticated principal iirc | 18:44 |
ignas | and i am not sure how nested groups work | 18:44 |
hazmat | ah.. | 18:44 |
lisppaste6 | hazmat pasted "security policy" at http://paste.lisp.org/display/49627 | 18:48 |
hazmat | i just tried switching the security policy to zope.security.simplepolicies.PermissivePolicy | 18:49 |
hazmat | still doesn't have an effect | 18:49 |
ignas | hmm | 18:49 |
ignas | are you logged in as someone when testing it? | 18:49 |
hazmat | i have some sort of security proxy rock, which won't let me do anything afaics | 18:49 |
hazmat | no, i'm anonymous | 18:49 |
ignas | then you should try putting a pdb in the menu_item part that discards the exception | 18:50 |
ignas | and looking at what it is telling | 18:50 |
ignas | like - what is the principal | 18:51 |
ignas | what is the permission | 18:51 |
ignas | and maybe just maybe the exception is not Unauthorized | 18:51 |
hazmat | i'm just trying a getitem.. on a container | 18:51 |
hazmat | its ForbiddenAttribute | 18:51 |
ignas | but something like forbidden attribute | 18:51 |
ignas | forbidden attribute means that either security context for the object is not set up right | 18:51 |
ignas | (missing __parent__) | 18:51 |
ignas | or that <class> for the object | 18:52 |
ignas | has no <allow> <require> covering that atrribute | 18:52 |
ignas | <allow interface="zope.app.container.interfaces.IReadContainer" /> in the <class> declaration should solve the problem | 18:53 |
*** tarek has quit IRC | 18:53 | |
ignas | djk001: i would like to help, but i don't really understand the problem, maybe you could paste a doctest that reproduces the problem? | 18:54 |
*** dobee has quit IRC | 18:56 | |
hazmat | ignas, thanks!! that fixed it | 18:57 |
djk001 | I would have to paste a bunch of code also. Basically, I have and interface | 18:58 |
djk001 | def IAddress(Interface): | 18:58 |
djk001 | that was one field | 18:58 |
djk001 | city = TextLine() | 18:58 |
djk001 | and an Address class that implements it | 18:58 |
djk001 | def Adress(Persistent): | 18:59 |
ignas | i am more interested in the assignment/verification part of it | 18:59 |
djk001 | implments(IAddress) | 18:59 |
djk001 | OK | 18:59 |
ignas | so if you could post the real code to lisppaste6 | 18:59 |
*** MJ has quit IRC | 18:59 | |
djk001 | just send lisppaste6 a message? | 18:59 |
ignas | no | 19:00 |
ignas | go to the url | 19:00 |
ignas | lisppaste6: url | 19:00 |
lisppaste6 | To use the lisppaste bot, visit http://paste.lisp.org/new/zope3-dev and enter your paste. | 19:00 |
ignas | and post the code in there | 19:00 |
djk001 | K. thanks | 19:00 |
*** pyqwer has quit IRC | 19:03 | |
*** projekt01 has quit IRC | 19:03 | |
mgedmin | djk001: _def_ Address(Persistent):? That's not a class, that's a function! | 19:05 |
* benji does that all the time. | 19:05 | |
*** malthe has joined #zope3-dev | 19:13 | |
lisppaste6 | djk pasted "Schema Issue" at http://paste.lisp.org/display/49630 | 19:14 |
djk001 | The docstring contains the error I'm getting | 19:14 |
djk001 | I saw a thread about what seems to be the same issue come up when defining a List schema and using a PersistentList to implement it | 19:15 |
*** harobed has quit IRC | 19:22 | |
mgedmin | that's a strange error | 19:22 |
mgedmin | where does the empty list come from? | 19:22 |
* mgedmin can reproduce | 19:24 | |
djk001 | I create a persistentList in the __init__ function | 19:24 |
djk001 | sorry, nevermind | 19:24 |
mgedmin | okay | 19:24 |
mgedmin | the fix is to add a __init__ to Address and assign a valid value | 19:25 |
mgedmin | for some reason the default is [] | 19:25 |
djk001 | a valid value to what? | 19:25 |
mgedmin | line1 | 19:25 |
djk001 | Oh, OK | 19:25 |
mgedmin | hm, the default value for line1 is None, and schema validator for some reason translates that to WrongContainedType: [] | 19:26 |
mgedmin | makes no sense | 19:26 |
djk001 | still get it | 19:27 |
djk001 | Added line1="" in the address __init__ | 19:27 |
djk001 | I assumed that empty list was supposed to be the types that the error generation had | 19:27 |
mgedmin | "" is not a valid value | 19:28 |
mgedmin | TextLine insists on unicode | 19:28 |
mgedmin | you can't pass plain str to it | 19:28 |
mgedmin | hm, schema validation converts RequiredMissing to WrongContainedType: [] somehow | 19:29 |
*** dobee has joined #zope3-dev | 19:29 | |
mgedmin | wait, what? | 19:29 |
mgedmin | raise WrongContainedType(errors) | 19:29 |
mgedmin | errors is supposed to be [RequiredMissing(...)] | 19:30 |
mgedmin | but it is [] | 19:30 |
mgedmin | where's the bug? | 19:30 |
*** quodt has quit IRC | 19:30 | |
ignas | __str__ of RequiredMissing | 19:30 |
ignas | ? | 19:31 |
djk001 | I added the unicode and still get the error | 19:31 |
djk001 | I assume the bug is that It is expected an IAddress and I pass it an Address but it thinks its the wrong type | 19:32 |
mgedmin | ah, faaaak | 19:33 |
djk001 | Actually, I commented out all the line1 stuff and it worked | 19:33 |
mgedmin | it's not an empty list | 19:33 |
mgedmin | it's a list that contains one item, whose __repr__ returns '' | 19:33 |
* mgedmin pulls out a big steel cluebat | 19:34 | |
mgedmin | djk001: do you want to file a zope 3 bug report in launchpad.net? | 19:34 |
djk001 | well, I'm still not sure what the issue is | 19:35 |
mgedmin | a completely incomprehensible error message in your situation | 19:35 |
mgedmin | I don't know what's the proper fix | 19:35 |
djk001 | I can file one for that | 19:35 |
mgedmin | but I think that repr(exception) returning '' is very undesirable | 19:35 |
djk001 | Actually, the first suggestion did work . Assigning Line1 to u'' made the issue go away | 19:36 |
djk001 | how do I file a bug in launchpad? | 19:36 |
mgedmin | https://launchpad.net/zope3/+bugs | 19:36 |
djk001 | thx. gotta run to a meeting, I'll file it a little later | 19:37 |
*** tarek has joined #zope3-dev | 19:39 | |
*** malthe has quit IRC | 19:48 | |
*** dobee has quit IRC | 19:51 | |
*** salfield has quit IRC | 19:52 | |
*** Jell-O-Fishi has joined #zope3-dev | 19:55 | |
*** tarek has quit IRC | 19:56 | |
*** dobee has joined #zope3-dev | 19:57 | |
*** malthe has joined #zope3-dev | 20:00 | |
*** rcrafton has quit IRC | 20:01 | |
*** ignas has quit IRC | 20:04 | |
*** thruflo has quit IRC | 20:04 | |
*** s2 is now known as sm | 20:10 | |
*** dobee has quit IRC | 20:11 | |
*** jukart has quit IRC | 20:37 | |
*** quodt has joined #zope3-dev | 20:39 | |
WebMaven | Theuni_: ping | 20:44 |
*** davidstryker has joined #zope3-dev | 20:45 | |
*** mkerrin has quit IRC | 20:47 | |
djk001 | OK guys. thanks for your help on the first issue. I am having trouble getting validation of the type you put in a list to work. I set the value_type to TextLine but it allows me to put numbers in a list. I will put it in lisppaste6 | 20:50 |
lisppaste6 | djk001 pasted "value_type issue" at http://paste.lisp.org/display/49635 | 20:51 |
*** alecm has quit IRC | 20:53 | |
*** alecm has joined #zope3-dev | 20:53 | |
*** gstratton has joined #zope3-dev | 20:54 | |
*** djk001 has left #zope3-dev | 21:00 | |
*** djk001 has joined #zope3-dev | 21:01 | |
mgedmin | djk001: don't expect PersistentList.append to perform validation for you | 21:05 |
djk001 | my list example doesn't work either. It seems I may be using value_type wrong | 21:07 |
*** rcrafton has joined #zope3-dev | 21:14 | |
*** alecm has quit IRC | 21:17 | |
*** alecm has joined #zope3-dev | 21:17 | |
*** d2m has quit IRC | 21:20 | |
*** agroszer has quit IRC | 21:21 | |
djk001 | so. am I using the value_type correctly? From my understanding passing this as a parameterto the list will perform validation on the items you place in the list. | 21:23 |
*** ignas has joined #zope3-dev | 21:30 | |
*** ignas has quit IRC | 21:30 | |
*** projekt01 has joined #zope3-dev | 21:31 | |
*** alga has joined #zope3-dev | 21:37 | |
mgedmin | no | 21:37 |
mgedmin | validation is often an afterthought in the zope 3 world | 21:38 |
mgedmin | forms do validation | 21:38 |
mgedmin | FieldProperties do validation | 21:38 |
mgedmin | and that's about it | 21:38 |
*** davidstryker has left #zope3-dev | 21:38 | |
*** alga has quit IRC | 21:39 | |
djk001 | I don't get it. What is the point of the value_type parameter then? | 21:40 |
*** pelle_ has joined #zope3-dev | 21:41 | |
*** jfroche has quit IRC | 21:45 | |
*** schwendinger has quit IRC | 21:47 | |
*** greenman has joined #zope3-dev | 21:52 | |
mgedmin | documentation | 21:56 |
mgedmin | also, I think *forms* will use it for validation | 21:57 |
djk001 | OK. just ran some tests | 21:57 |
mgedmin | if you use a widget for lists | 21:57 |
mgedmin | but all my attempts to use list widgets failed miserably | 21:57 |
*** alga has joined #zope3-dev | 21:57 | |
djk001 | it does correctly fail if you do a obj.list = [1,2,3] | 21:57 |
djk001 | but doesn't validate obj.extend([1,2,3]) | 21:57 |
djk001 | so it only works for assignment in the list. not for function calls | 21:57 |
bigkevmcd | that makes sense | 21:59 |
bigkevmcd | (unfortunately) | 21:59 |
djk001 | yeah. makes some sense. Would be nice if it protected what you put in the list under all circumstances. but oh well. | 22:00 |
*** dunny has joined #zope3-dev | 22:05 | |
*** jodok has quit IRC | 22:06 | |
*** mgedmin has quit IRC | 22:13 | |
*** rmarianski has quit IRC | 22:23 | |
*** rmarianski has joined #zope3-dev | 22:24 | |
malthe | shouldn't a List with a value_type of Choice render a series of checkboxes? | 22:31 |
rmarianski | malthe: does it render a listbox? | 22:32 |
malthe | it renders a bunch of radios | 22:33 |
rmarianski | malthe: i think that makes sense, rendering checkboxes may lean towards selecting multiple options, instead of one | 22:34 |
malthe | true; but how does one support the use-case of having a dynamic number of options that are all related? | 22:35 |
malthe | i.e. choose a bunch of search results, do stuff with them | 22:35 |
*** bigkevmcd has quit IRC | 22:35 | |
malthe | markusleist: seems like it's implemented by Plone 3 –– MultiCheckboxWidget | 22:37 |
malthe | err MultiCheckBoxVocabularyWidget even | 22:43 |
djk001 | One more question. In all the articles I read, the implmentation classes define in interface attributes at the class level, instead of at the instance level. Why is this? Take this link for example: http://wiki.zope.org/zope3/Zope3In30Minutes#real-coding Should the url and description in class Mark be defined under an __init__ function instead? | 22:50 |
benji | djk001: I don't see why it would matter; an instance needs those attributes, whereever it gets them from. | 22:57 |
djk001 | yes, but then all instances share the same attribute (if defined at the class level) | 22:59 |
benji | only if they're mutable; that's a general Python no-no | 23:03 |
djk001 | so, correct me if I'm wrong. But in the example. If I create two instances of mark: mark1 = Mark(), mark2 = Mark(), then assign mark1.url="some url" , if I were to do mark2.url it would return "some url", no??? | 23:05 |
benji | no | 23:11 |
*** Ariel_Calzada has joined #zope3-dev | 23:12 | |
*** alecm has quit IRC | 23:14 | |
*** RaFromBRC has quit IRC | 23:16 | |
djk001 | sorry. just tried it and your right. I could have sworn I saw that behavior before | 23:18 |
*** junkafarian has joined #zope3-dev | 23:19 | |
*** ignas has joined #zope3-dev | 23:34 | |
*** alecm has joined #zope3-dev | 23:41 | |
*** junkafarian has quit IRC | 23:42 | |
*** djk001 has left #zope3-dev | 23:43 | |
*** Doc_Dan has joined #zope3-dev | 23:50 | |
*** pelle_ has quit IRC | 23:54 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!