IRC log of #zope3-dev for Thursday, 2006-09-14

*** timte has joined #zope3-dev00:02
*** philiKON has quit IRC00:04
*** gumpa has left #zope3-dev00:16
*** gumpa has joined #zope3-dev00:27
*** edgordon_ has quit IRC00:37
*** RaFromBRC has quit IRC00:39
*** volvox has joined #zope3-dev01:00
*** natea has joined #zope3-dev01:25
*** yota has quit IRC01:28
*** timte has quit IRC01:45
*** _sussi has left #zope3-dev02:07
*** natea has quit IRC02:16
*** natea has joined #zope3-dev02:16
*** natea has quit IRC02:19
*** natea has joined #zope3-dev02:19
*** J1m has left #zope3-dev02:23
*** volvox has quit IRC02:31
*** markup_ has joined #zope3-dev02:32
*** jinty has quit IRC03:06
*** natea has quit IRC03:07
*** benji has left #zope3-dev03:11
*** replicant has joined #zope3-dev03:22
WebMavenAre there any SQLOS users here?03:25
*** markup_ has quit IRC03:25
*** wrobel has quit IRC03:42
*** natea has joined #zope3-dev03:48
*** gumpa has quit IRC03:52
*** gumpa has joined #zope3-dev03:53
*** natea has quit IRC03:54
*** natea has joined #zope3-dev04:00
*** natea has quit IRC04:01
*** natea has joined #zope3-dev04:02
*** natea has quit IRC04:06
*** natea has joined #zope3-dev04:07
*** replicant has quit IRC04:41
*** replicant has joined #zope3-dev04:42
*** niemeyer has quit IRC04:48
*** whit_ has joined #zope3-dev05:10
*** edgordon has joined #zope3-dev05:36
*** edgordon is now known as edgordon_away05:55
*** natea has quit IRC06:06
*** philiKON has joined #zope3-dev06:07
*** philiKON has quit IRC06:28
*** baijum has joined #zope3-dev06:52
*** stub has joined #zope3-dev07:15
*** alecm has quit IRC07:25
*** alecm has joined #zope3-dev07:44
*** alecm has quit IRC07:50
*** whit_ has quit IRC07:53
*** alecm has joined #zope3-dev07:54
*** alecm has quit IRC07:56
*** alecm has joined #zope3-dev08:01
*** dobee has joined #zope3-dev08:02
*** eins has joined #zope3-dev08:10
*** romanofski has quit IRC08:28
*** alecm has quit IRC08:32
*** alecm has joined #zope3-dev08:32
*** batlogg has quit IRC08:51
*** Aiste has joined #zope3-dev08:52
*** batlogg has joined #zope3-dev09:03
*** flox has quit IRC09:05
*** dobee has quit IRC09:06
*** timte has joined #zope3-dev09:10
*** hdima has joined #zope3-dev09:12
*** dunny has quit IRC09:17
*** yota has joined #zope3-dev09:26
*** dobee_ has joined #zope3-dev09:33
*** romanofski has joined #zope3-dev09:35
*** gumpa has quit IRC09:52
*** jinty has joined #zope3-dev10:00
*** gumpa has joined #zope3-dev10:05
*** schwendinger has joined #zope3-dev10:08
*** flox has joined #zope3-dev10:23
*** philiKON has joined #zope3-dev10:31
*** scherand has joined #zope3-dev10:33
*** kobol1 has joined #zope3-dev10:34
*** zagy_ has joined #zope3-dev10:44
*** dunny has joined #zope3-dev10:48
*** ofer has joined #zope3-dev10:54
*** alecm has quit IRC11:00
*** replicant has quit IRC11:07
*** ofer has quit IRC11:19
*** MJ has quit IRC11:23
*** romanofs1i has joined #zope3-dev11:27
*** romanofski has quit IRC11:29
*** romanofs1i is now known as romanofski11:29
*** ofer has joined #zope3-dev11:36
*** ofer has left #zope3-dev11:37
*** zagy_ has quit IRC11:40
*** philiKON has quit IRC11:44
*** srichter has joined #zope3-dev11:47
*** srichter has quit IRC11:47
*** volvox has joined #zope3-dev11:47
*** srichter has joined #zope3-dev11:58
*** ChanServ sets mode: +o srichter11:58
*** ignas has joined #zope3-dev12:05
*** mexiKON has joined #zope3-dev12:14
*** agroszer has joined #zope3-dev12:17
*** MJ has joined #zope3-dev12:22
*** zagy has joined #zope3-dev12:24
*** scherand has quit IRC12:32
*** benji has joined #zope3-dev12:47
*** alga has joined #zope3-dev12:52
*** mexiKON has quit IRC13:00
*** mexiKON has joined #zope3-dev13:02
*** zagy has quit IRC13:02
*** Aiste has quit IRC13:03
*** mexiKON has quit IRC13:06
*** mexiKON has joined #zope3-dev13:07
*** mkerrin has joined #zope3-dev13:10
*** J1m has joined #zope3-dev13:15
*** ignas has quit IRC13:47
*** dunny has quit IRC13:49
*** mexiKON has quit IRC13:52
*** benji has quit IRC13:59
*** projekt01 has joined #zope3-dev14:18
*** _sussi has joined #zope3-dev14:27
*** baijum has quit IRC14:27
*** rocky has joined #zope3-dev14:38
*** rocky has left #zope3-dev14:39
*** rocky has joined #zope3-dev14:40
*** rocky has left #zope3-dev14:41
*** rocky has joined #zope3-dev14:41
*** J1m has quit IRC14:41
*** edgordon_away has quit IRC14:44
*** philiKON has joined #zope3-dev14:47
*** Aiste has joined #zope3-dev14:49
*** batlogg has quit IRC14:51
*** flox has quit IRC14:59
*** philiKON has quit IRC15:03
*** Aiste has quit IRC15:14
*** batlogg has joined #zope3-dev15:14
*** _sussi has quit IRC15:23
*** benji has joined #zope3-dev15:27
*** regebro has joined #zope3-dev15:38
*** natea has joined #zope3-dev15:44
*** _projekt01 has joined #zope3-dev15:45
*** niemeyer has joined #zope3-dev15:46
*** projekt01 has quit IRC15:46
*** rocky is now known as rocky|away15:47
*** natea has quit IRC15:48
*** natea has joined #zope3-dev15:49
*** natea has quit IRC15:53
*** natea has joined #zope3-dev15:54
*** zagy has joined #zope3-dev15:54
*** ignas has joined #zope3-dev15:59
SmokeyDhi people, I've got a small problem. I am building an app. I've defined my schemas and forms and views and stuff. I have also partially implemented the system (test version). Now I want to add a few extra attributes to one of the zope objects. I add them to the schema of the corresponding object, but now the edit form of that object (a formlib form) starts to complain when setting up the widgets that the attribute I just added to the sche16:07
SmokeyDma does not exist yet with this particular object16:07
*** mgedmin has joined #zope3-dev16:07
wiggyprobably need some generation magic to update your content16:08
SmokeyDI guess16:08
SmokeyDbut how to do that easiest16:08
*** edgordon has joined #zope3-dev16:10
*** mgedmin has quit IRC16:14
*** mgedmin has joined #zope3-dev16:14
regebroSmokeyD: I think all you need is a default in the schema.16:14
*** nathany has joined #zope3-dev16:15
*** flox has joined #zope3-dev16:16
*** rocky|away is now known as rocky16:17
SmokeyDregebro: no it doesn't work. I think I had the problem before. Then it was easier to solve with just a hasattr(). Now the attribute gets it's value through a vocabulary16:17
regebroOK, so the default is only used when not having an object then. Ehum. That's a bit annoying.16:18
*** natea has quit IRC16:18
SmokeyDindeed. I think I will override one of the formlib methods and catch AttributeError16:19
*** natea has joined #zope3-dev16:19
wiggythat sounds like a workaround16:19
SmokeyDindeed, not a very clean one, but It will work for now16:19
SmokeyDThis is just a test version of the app16:20
SmokeyDanyway, so I will remove it in the final release16:20
*** batlogg has quit IRC16:26
*** natea has quit IRC16:28
*** zagy has quit IRC16:32
*** J1m has joined #zope3-dev16:36
*** stub has quit IRC16:51
*** whit has joined #zope3-dev16:53
*** natea has joined #zope3-dev17:03
*** eins has quit IRC17:05
*** hdima has quit IRC17:14
*** gumpa has left #zope3-dev17:17
*** mnordgren has joined #Zope3-dev17:17
*** batlogg has joined #zope3-dev17:24
*** RaFromBRC has joined #zope3-dev17:37
*** edgordon has quit IRC17:46
*** gumpa has joined #zope3-dev17:46
*** gintas has joined #zope3-dev17:49
*** whit has quit IRC17:55
SmokeyDI solved my problem by overriding the setUpWidgets method of the edit form, and defining my own setUpEditWidgets instead of using formlib.form.setUpEditWidgets. My setUpEditWidgets is almost the same, except that it catches an attribute error at value=field.get(adapter) and sets the attribute on the adapter if it is not there yet17:56
SmokeyDThen another question17:57
SmokeyDit it possible to edit the __name__ attribute of a zope object after it is created?17:57
SmokeyDOr will that give trouble?17:57
*** nathany has quit IRC17:58
*** andrew_m has left #zope3-dev18:00
*** andrew_m has joined #zope3-dev18:02
*** andrew_m has joined #zope3-dev18:03
*** ktwilight has quit IRC18:14
benjiSmokeyD: I don't know much about it, but I think you want to adapt (something, either the container or the item) to IContainerItemRenamer18:23
benjithan call its renameItem method18:23
SmokeyDok, thanks18:24
benjithere's also IObjectMover, just in case18:24
*** whit has joined #zope3-dev18:24
mgedminfwiw IContainerItemRenamer is build on top of IObjectMover18:24
mgedminwell, not the interface18:25
mgedminbut the adapter that provides it18:25
benjiahh, ok18:25
SmokeyDok, thnks18:28
SmokeyDWell, I've run into another problem first :)18:28
SmokeyDWhen can you get ForbiddenAttribute Errors?18:29
SmokeyDI'm trying to display an edit form (formlib form)18:29
*** flox has quit IRC18:29
SmokeyDbut setUpEditWidgets returns an ForbiddenAttribute error for one of the attributes18:29
SmokeyDthe attribute is defined in a schema from which the schema that describes the object for which the edit form is registered, inherits18:30
SmokeyDI've got a schema called IAddress. It contains a TextLine attribute called address18:31
SmokeyDIGroup inherits from IAddress, and class Group implements IGroup. If I call an editform on an instance of Group, I get the ForbiddenAttribute Error18:32
SmokeyDabout the address attribute18:32
*** ktwilight has joined #zope3-dev18:32
benjihow do you have the security set up on those objects?18:33
mnordgrensounds like you need to give permission on the IAddress in your class="Group"18:34
SmokeyDok, yeah, I think so too. Thanks18:37
mnordgreni do that all the time :)18:37
SmokeyDI don't see where I forgot it yet, but I think it should be something like that18:37
SmokeyDno permissions are listed in @@instrospector for the Group instance18:37
SmokeyDI forgot to define specify the Group class as a content object and within the content definition the permissions in the configure.xcml file18:40
*** whit has quit IRC18:42
*** markup_ has joined #zope3-dev18:44
*** schwendinger has quit IRC18:47
*** schwendinger has joined #zope3-dev18:50
*** batlogg has quit IRC18:56
*** schwendinger has quit IRC18:56
*** srichter has quit IRC18:59
*** dobee_ has quit IRC19:06
*** whit has joined #zope3-dev19:09
*** edgordon has joined #zope3-dev19:12
*** alecm has joined #zope3-dev19:17
*** MJ has quit IRC19:22
*** natea has quit IRC19:22
*** ofer has joined #zope3-dev19:26
*** _projekt01 has quit IRC19:27
*** regebro has quit IRC19:28
*** whit has quit IRC19:37
*** replicant has joined #zope3-dev19:45
*** alga has quit IRC19:46
*** alga has joined #zope3-dev19:47
*** ofer has quit IRC19:51
*** danfairs has joined #zope3-dev19:58
*** alecm has quit IRC20:12
*** replicant has quit IRC20:26
*** romanofs1i has joined #zope3-dev20:26
*** alecm has joined #zope3-dev20:35
*** gintas has quit IRC20:42
*** rocky has quit IRC20:48
*** rocky has joined #zope3-dev20:50
*** batlogg has joined #zope3-dev20:50
*** whit has joined #zope3-dev20:57
*** RaFromBRC has quit IRC20:58
*** RaFromBRC has joined #zope3-dev20:59
*** gumpa is now known as gumpa_afk21:02
*** MJ has joined #zope3-dev21:03
*** mnordgren has quit IRC21:04
*** natea has joined #zope3-dev21:06
*** batlogg has quit IRC21:08
*** schwendinger has joined #zope3-dev21:12
*** batlogg has joined #zope3-dev21:13
*** ignas has quit IRC21:13
*** schwendinger has quit IRC21:16
*** agroszer has quit IRC21:26
*** edgordon has quit IRC21:27
batloggJ1m: would you mind processing the contributor agreement of stsblacky?21:35
*** kobol1 has left #zope3-dev21:45
*** dunny has joined #zope3-dev21:49
*** danfairs has quit IRC21:52
J1mbatlogg: no, where is it?21:56
batloggwe faxed it yesterday to zc, J1m21:56
J1mk, I haven't gotten it yet.21:56
J1mI don't get the faxes directly.21:57
J1mok, we have it21:58
J1mI'll do it in a few minutes21:58
batloggo.k. :) let's try tomorrow22:03
*** mkerrin has quit IRC22:04
J1mbatlogg: done22:05
batloggJ1m: perfect. thanks!22:05
batloggJ1m: we'd like to become solution provider. are you the right person to handle that?22:06
J1mFill out the membership agreement:22:08
J1mand ....22:08
J1mLet's see:22:08
J1mYou submit them the same way you would submit a committer agreement:22:10
J1mThat is by mailing/faxing/emailing to the places mentioned in the committer agreement.22:10
J1mah, see:22:11
J1mwhich gives instructions.22:11
batloggo.k., so that process is up :)22:11
*** rock1 has joined #zope3-dev22:26
*** rocky has quit IRC22:31
*** rock1 is now known as rocky22:31
*** replicant has joined #zope3-dev22:34
*** volvox has quit IRC22:39
*** hazmat_ has joined #zope3-dev22:44
*** replicant has quit IRC22:51
wiggyis the openid.cryptutil module going to stay around?22:55
*** hazmat_ has quit IRC23:00
*** RaFromBRC has quit IRC23:02
*** replicant has joined #zope3-dev23:03
*** natea has quit IRC23:03
benjiwiggy: what are you talking about? :)23:04
wiggythat should have gone to the next window :)23:05
benjiheh :)23:05
*** povbot has joined #zope3-dev23:18
*** danfairs has joined #zope3-dev23:19
*** replicant has quit IRC23:21
*** rocky is now known as rocky|away23:22
*** mgedmin has quit IRC23:25
*** niemeyer has quit IRC23:27
*** timte has quit IRC23:35
*** RaFromBRC has joined #zope3-dev23:39
*** xenru has quit IRC23:39
*** alga has quit IRC23:40
*** whit has quit IRC23:43
rocky|awayquick question, if i have a bunch of widgets all registered for the same field, how does the logic know which widget to use by default?23:47
*** rocky|away is now known as rocky23:47
* rocky is just getting into widgets and understanding that widgets are multi-adapters for the field and request23:47
benjirocky: I don't know for sure, but would guess that it uses the normal adapter precidence rules23:52
rockybenji: when the field interfaces being adapted are identical wouldn't that mean it's random? or alphabetical? or?23:52
benjiI don't think that question makes sense. :)23:53
benjiso the multi-adapter from (IFooField, IRequest) to ISomething is being looked up...23:53
benjiif you do that look up twice (for two different fields of the same type, say) it'll return the same result each time23:54
rockybut i guess i just don't know what that same something will be each time23:54
benjiif, OTOH, you register an adapter when there is already an adapter for that exact set of interfaces registered, the new one will override the other23:54
rockyoh? that i didn't realize23:55
benjithere can be only one </highlander>23:55
rockystill don't know which one wins tho23:57
rockyi mean which one is the overriding one23:57
rockythe last to zcml load i guess23:57
benjithe last one wins23:57
benjiactually, I /believe/ the ZCMl machinery adds another layer on top, so you can't register an adapter for the same interfaces twice, you have to use overrides for that (but I'm not sure)23:58
benjiit'd be easy enough to try and see23:58

Generated by 2.15.1 by Marius Gedminas - find it at!