IRC log of #zope3-dev for Tuesday, 2007-10-23

*** alga has quit IRC00:05
*** norro has quit IRC00:16
*** hazmat has quit IRC00:17
*** benji has quit IRC00:22
*** RaFromBRC has joined #zope3-dev00:35
*** RaFromBRC has quit IRC00:44
*** RaFromBRC has joined #zope3-dev00:46
*** dobee has joined #zope3-dev01:06
*** afd__ has quit IRC01:11
*** whit is now known as whit|gym01:12
*** dobee has quit IRC01:18
*** ktwilight has joined #zope3-dev01:24
*** gstratton has quit IRC01:31
*** J1m has quit IRC01:35
*** ktwilight_ has quit IRC01:38
*** rmarianski has quit IRC01:50
*** RaFromBRC has quit IRC02:00
*** RaFromBRC has joined #zope3-dev02:00
*** malthe has quit IRC02:11
*** ignas has quit IRC02:34
*** ignas has joined #zope3-dev03:08
*** replicant is now known as hazmat03:23
*** ChanServ sets mode: +o hazmat03:23
*** reco has quit IRC03:27
*** ccomb has quit IRC03:45
*** projekt01 has quit IRC03:57
*** b52laptop has quit IRC04:14
*** aclark is now known as aclark|away04:21
*** RaFromBRC has quit IRC04:27
*** febb has joined #zope3-dev04:31
*** febb has quit IRC04:35
*** ignas has quit IRC04:38
*** WebMaven has quit IRC04:48
*** whit|gym has quit IRC04:56
*** whit has joined #zope3-dev04:58
*** rmarianski has joined #zope3-dev05:01
*** Ariel_Calzada has quit IRC05:02
*** stub has joined #zope3-dev05:40
*** rmarianski has quit IRC05:44
*** rmarianski has joined #zope3-dev05:53
*** niemeyer has quit IRC06:04
*** ruda_porto has joined #zope3-dev06:11
*** greenman has quit IRC06:21
*** stub has quit IRC06:26
*** [1]Doc_Dan has joined #zope3-dev06:38
*** alecm has quit IRC06:39
*** Doc_Dan has quit IRC06:55
*** [1]Doc_Dan is now known as Doc_Dan06:55
*** ruda_porto has quit IRC07:12
*** baijum has joined #zope3-dev07:32
*** chacha_chaudhry has joined #zope3-dev07:45
*** whit has quit IRC07:54
*** rmarianski has quit IRC08:22
*** rmarianski has joined #zope3-dev08:39
*** rmarianski has quit IRC08:44
*** dobee has joined #zope3-dev08:44
*** greenman has joined #zope3-dev08:45
*** jukart has joined #zope3-dev08:49
*** d2m has joined #zope3-dev08:50
*** jodok has joined #zope3-dev08:58
*** cursor has joined #zope3-dev09:00
*** jodok has quit IRC09:00
*** jodok has joined #zope3-dev09:01
*** Jell-O-Fishi has quit IRC09:14
*** timte has joined #zope3-dev09:21
*** afd__ has joined #zope3-dev09:29
*** jodok has quit IRC09:36
*** quodt has quit IRC09:43
*** jodok has joined #zope3-dev09:55
*** quodt has joined #zope3-dev10:01
*** schwendinger has joined #zope3-dev10:03
*** agroszer has joined #zope3-dev10:28
*** greenman has quit IRC10:29
*** pelle_ has joined #zope3-dev10:30
*** greenman has joined #zope3-dev10:32
*** markusleist has quit IRC10:35
*** malthe has joined #zope3-dev10:38
*** gstratton has joined #zope3-dev10:50
*** gstratton_ has joined #zope3-dev10:51
*** bigkevmcd has joined #zope3-dev11:00
*** malthe is now known as malthe|away11:01
*** tomus has quit IRC11:01
*** edgordon_ has joined #zope3-dev11:01
*** gstratton has quit IRC11:06
*** tarek has joined #zope3-dev11:07
*** jinty has joined #zope3-dev11:10
*** jfroche has joined #zope3-dev11:15
*** edgordon has quit IRC11:16
*** gstratton_ has quit IRC11:16
bigkevmcdMornin' all, I'm using a SimpleTerm/SimpleVocabulary to populate a schema.Choice in a formlib form, I want one of the items to be disabled in the list box, in certain circumstances, is there a way to do this?11:22
*** jodok has quit IRC11:28
*** markusleist has joined #zope3-dev11:34
*** jodok has joined #zope3-dev11:35
*** malthe|away is now known as malthe11:39
*** markusleist has quit IRC11:54
*** markusleist has joined #zope3-dev11:55
*** tarek_ has joined #zope3-dev12:00
*** yvl has joined #zope3-dev12:14
*** tarek has quit IRC12:15
*** jfroche_ has joined #zope3-dev12:30
*** jfroche has quit IRC12:31
*** mgedmin has joined #zope3-dev12:49
*** deo has joined #zope3-dev13:02
*** Aiste_ has joined #zope3-dev13:04
*** Aiste has quit IRC13:04
*** tomus has joined #zope3-dev13:12
*** b52laptop has joined #zope3-dev13:21
*** cursor_ has joined #zope3-dev13:27
*** dunny has quit IRC13:33
*** salfield has joined #zope3-dev13:34
*** cursor has quit IRC13:34
*** jfroche has joined #zope3-dev13:40
*** malthe has quit IRC13:50
*** J1m has joined #zope3-dev13:51
*** jfroche_ has quit IRC13:58
*** ghendi has joined #zope3-dev14:02
*** jfroche has quit IRC14:03
*** jfroche has joined #zope3-dev14:03
*** Doc_Dan has quit IRC14:09
*** Doc_Dan has joined #zope3-dev14:09
*** projekt01 has joined #zope3-dev14:10
*** afd__ has quit IRC14:12
*** greenman has quit IRC14:13
*** jfroche has quit IRC14:22
*** hazmat has quit IRC14:29
*** whit has joined #zope3-dev14:39
*** sorin has joined #zope3-dev14:41
*** sorin is now known as sorindregan14:41
*** mkerrin has joined #zope3-dev14:41
*** Ariel_Calzada has joined #zope3-dev14:47
timteHow can I refer to buildout.cfg develop key from same key in devel.cfg without getting circular references?14:57
*** afd_ has quit IRC15:03
timtegot it working15:10
*** benji has joined #zope3-dev15:23
*** vlado has joined #zope3-dev15:24
*** yvl has quit IRC15:26
*** rcrafton has quit IRC15:26
*** yvl has joined #zope3-dev15:28
*** niemeyer has joined #zope3-dev15:29
*** ignas has joined #zope3-dev15:33
*** stub has joined #zope3-dev15:41
*** hazmat has joined #zope3-dev15:45
*** cursor_ has quit IRC15:53
*** jinty has quit IRC15:58
*** aclark|away is now known as aclark|psc15:59
*** philiKON_ is now known as philiKON16:04
*** malthe has joined #zope3-dev16:04
*** afd_ has joined #zope3-dev16:05
*** philiKON_ has joined #zope3-dev16:06
*** philiKON has quit IRC16:07
*** philiKON_ is now known as philiKON16:07
*** jinty has joined #zope3-dev16:10
*** stub has quit IRC16:13
*** markusleist has quit IRC16:21
*** harobed has joined #zope3-dev16:22
*** edgordon_ has quit IRC16:26
*** rcrafton has joined #zope3-dev16:29
*** philiKON has quit IRC16:38
*** jodok|iPhone has joined #zope3-dev16:58
*** malthe has quit IRC17:01
*** thruflo has joined #zope3-dev17:11
thruflohi, I'm getting a "UnpickleableError: Cannot pickle <type ''> objects" error on basic add / edit forms for a very simple content object17:12
thrufloit works when in the root folder17:12
thrufloie: i add a container & then add objects to it and can edit ok17:12
thruflobut when i add the container to a site17:13
thrufloi get the security error17:13
thrufloi know I can removeSecuiryProxy but I'm using the bog standard edit forms - no special classes17:13
*** junkafarian has joined #zope3-dev17:14
* thruflo waves at junkafarian 17:14
junkafarianyo thruflo17:14
junkafarianis there a way to get more info on a 'Could not adapt' error?17:15
*** jodok|iPhone has quit IRC17:15
thruflo^ am I missing something obvious?17:15
*** jodok|iPhone has joined #zope3-dev17:15
junkafarianthruflo: ?17:16
thruflojunkafarian: [15:12] thruflo: hi, I'm getting a "UnpickleableError: Cannot pickle <type ''> objects" error on basic add / edit forms for a very simple content object17:16
thruflothruflo: it works when in the root folder, but when i add the container to a site i get the security error17:16
ignaswhy are you adding a security proxied object into a container?17:18
thrufloi just wanna add a simple 'note' object to a container17:19
junkafarianignas: i think the problem is that he isnt verbosely proxying the object17:20
ignasthe idea is - you should not be adding security wrapped objects into containers, now how the proxy got onto an object17:20
ignasis a different question17:20
ignasit should not happen on a newly created object17:20
junkafarianits happening only on the edit forms17:21
junkafarianbut both add and edit forms are skin and bones17:21
ignasso your edit forms are readding the object into the container17:21
*** jodok|iPhone has quit IRC17:21
ignaswhile they should only modify the object17:21
junkafarianthe objects can be created in the container no problem17:21
thruflo<addMenuItem title="Note"17:22
thruflo      class="pesto.obj.note.Note"17:22
thruflo      permission="zope.ManageContent"17:22
thruflo      view="add_note.html"17:22
thruflo  />17:22
junkafarianit errors on what seems to be the update() function17:22
thruflo  <addform name="add_note.html"17:22
thruflo      label="Add Note"17:22
thruflo      schema="pesto.obj.note.interfaces.INote"17:22
thruflo      content_factory="pesto.obj.note.Note"17:22
thruflo      permission="zope.ManageContent"17:22
thruflo  />17:22
ignaslisppaste6: url17:22
lisppaste6To use the lisppaste bot, visit and enter your paste.17:22
thruflo^ ie: I have no / class17:22
thruflook, tx17:22
lisppaste6thruflo pasted "note configure.zcml" at
thrufloie: bog simple content object, add & edit, containment etc. works fine in site root17:23
thruflobut I get the UnpickleableError error within a site folder17:24
thruflowhich has it's own pau / auth plugin17:24
thruflo(when I say site folder I don't mean ++etc-site++ but just a folder called 'sidf' that's been made into a site)17:24
*** aclark|psc is now known as aclark|1017:25
mgedminthruflo: please pastebot the full traceback17:26
lisppaste6thruflo pasted "traceback" at
mgedminoh, right, it's useless at this late point17:27
junkafarianmgedmin: how so?17:27
junkafarianim working on the same project17:27
mgedminthe question is, how the security proxied object gets attached to the containment hierarchy17:28
mgedminand the traceback happens at a later point17:28
mgedminwhat's the auth plugin?17:29
mgedmina custom one?17:29
mgedmincould be you're getting that error from DC metadata when it tries to store the creator id17:29
* junkafarian checks17:30
junkafarianon a separate issue, is there a way to get more information on why im getting a 'Could not adapt' error?17:31
mgedminokay, here's what I'd do: I'd insert a pdb.set_trace() in ZODB/ (line 543), within a try/except UnpickleableError block, and then inspect that proxy17:32
mgedmini.e. call removeSecurityProxy from it and see what it is17:32
junkafarianmgedmin: ^17:32
mgedminno idea about debugging adapters17:32
mgedminwell, you *could* get a full list of adapter registrations and see why the one you want is not in it17:32
mgedminit's a big list, I think17:32
mgedminusually it's easier to apply deductive reasoning17:33
*** rmarianski has joined #zope3-dev17:33
junkafarianwas afraid you would say something like that :P17:34
junkafarian'could not adapt' is just a rather general error :P17:35
*** baijum has quit IRC17:35
mgedminadapters are a pretty general mechanism17:35
ignasjunkafarian: what i do is - import pdb before adaptation17:35
ignasand look what i am adapting17:35
ignasand to what i am trying to adapt it to17:36
mgedminif you get a "command not found" error in bash, what more information do you want?17:36
ignassingle adaptations are trivial most of the times17:36
mgedminwell, okay, bad example, you want to know what package to install to get that command17:36
ignasand only multi adapters might need some internal debugging,  but even then - all the tricky cases are when you get the wrong object17:36
junkafarianmgedmin: hrhr17:36
ignasnot when you get 'failed to adapty'17:37
junkafariani was just wondering what the main causes are for adapting failures17:38
*** malthe has joined #zope3-dev17:39
junkafarianas i dont know if it is a configuration error or whether it is something in the code17:39
*** WebMaven has joined #zope3-dev17:54
*** vlado has quit IRC17:55
*** ghendi has quit IRC17:58
*** sorindregan has quit IRC17:58
junkafarianit was a config error18:00
junkafarianbut a wierd one!18:00
*** Aiste_ is now known as Aiste18:02
*** jukart has quit IRC18:02
*** deo has quit IRC18:03
*** pelle__ has joined #zope3-dev18:06
*** chacha_chaudhry has quit IRC18:07
*** djk001 has joined #zope3-dev18:14
*** MJ has joined #zope3-dev18:18
*** alecm has joined #zope3-dev18:25
*** norro has joined #zope3-dev18:29
*** timte has quit IRC18:31
*** sm has quit IRC18:33
*** sm has joined #zope3-dev18:34
*** pelle_ has quit IRC18:36
thrufloapologies for dissapearing whilst mid getting help - got dragged into mtg19:01
thruflomgedmin: tx for advice, will debug as you suggest19:02
thruflook yup, was the annotations19:04
* thruflo grinds his teeth19:04
mgedminprincipal id is supposed to be a string19:05
mgedminstrings are never security proxied19:05
mgedmindoes your auth plugin use non-stringish for principal ids?19:05
thrufloi'm using a standard sessions credentials auth plugin19:07
thrufloand this signup principal folder as authentication plugin:
mgedminso what was that object hiding behind the proxy?19:10
* thruflo re-bugs19:11
*** jukart has joined #zope3-dev19:15
lisppaste6thruflo annotated #49681 with "the obj causing the mischief" at
*** harobed has quit IRC19:23
*** jukart has quit IRC19:24
* thruflo scans IZopeDublinCore to no avail19:24
mgedmindo you register the dublin core adapters manually, or do you include the original zcmls?19:26
mgedminperhaps the dc adapter lost its 'trusted' attribute in zcml?19:27
thruflo<implements interface="zope.annotation.interfaces.IAttributeAnnotatable" /> in the zcml19:27
*** Jell-O-Fishi has joined #zope3-dev19:28
*** gstratton has joined #zope3-dev19:32
*** quodt has quit IRC19:43
*** quodt has joined #zope3-dev19:44
*** projekt01 has quit IRC19:44
*** thruflo has quit IRC19:46
*** dunny has joined #zope3-dev19:47
*** Ariel_Calzada has quit IRC19:52
*** quodt has quit IRC19:52
*** whit is now known as whit|lunch20:00
*** malthe has quit IRC20:01
*** junkafarian has quit IRC20:05
*** edgordon has joined #zope3-dev20:05
*** jukart has joined #zope3-dev20:08
*** nathany has joined #zope3-dev20:13
*** schwendinger has quit IRC20:15
*** afd_ has quit IRC20:16
*** RaFromBRC has joined #zope3-dev20:17
*** afd_ has joined #zope3-dev20:18
*** thruflo has joined #zope3-dev20:19
thrufloadsl borked20:20
*** whit|lunch is now known as whit20:24
*** ccomb has joined #zope3-dev20:26
*** amaron has joined #zope3-dev20:29
*** jukart has quit IRC20:31
*** mkerrin has quit IRC20:33
lisppaste6amaron pasted "What this error means?" at
*** djk001 has left #zope3-dev20:39
regebroamaron: That it can't find standard-macros. But what you did to Zope3 so that you don't have standard_macros is beyond me. :-)20:43
mgedminit means that there's no 'standard_macros' view on context20:43
mgedminwhich is pretty strange, as standard_macros is a view on everything20:44
mgedmindo you use custom skins?20:44
amaronyes, I created one and use it for other pages20:44
*** jfroche has joined #zope3-dev20:44
amaronbut this reports for AddForm derived class20:44
mgedminthe skin is applied on the request20:45
mgedminstandard_macros is part of the rotterdam skin20:45
mgedminif you use a different skin and want to use AddForm's that want standard_macros, you need to provide your own version of standard_macros20:46
amaroni created my own version of standard_macros20:46
mgedminalternatively you can perhaps provide your own page template for the AddForm, one that doesn't need standard_macros20:46
regebrobut it's on a specific layer, right? Can't you include the rotterdams layer in your skin? (I'm a newbie when it comes to layers and skins).20:46
amaroni'm a newbie for zope3 and zope20:47
amaronso u can guess why i'm lost20:48
amaroni'm into this ... this is a second week20:48
mgedminzope 3 eats newbies alive for breakfast! muahahahaha20:48
* mgedmin is evil20:48
mgedminanyway, skins are tricky, so I avoid them20:48
mgedmincan you paste the bit of zcml where you're registering your own standard_macros?20:49
* mgedmin also avoids AddForm's20:49
mgedminzope.formlib is generally nicer to work with than's zcml magic20:50
lisppaste6amaron annotated #49688 with "new skin declared here" at
mgedminz3c.form is a new package that wants to replace zope.formlib, but I haven't actually tried it in practice20:50
mgedminhow do you enable the browser skin?20:51
mgedminis it made the default skin with a zcml declaration, or do you have a traversal event subscriber that calls applySkin, or what?20:52
amaroni overrided defaultSkin20:52
amaronand that skin works for all other pages20:52
amaronexcept this one20:52
amaronwhich is based on AddForm20:52
mgedminversus standard_macros20:53
mgedminthere's your mismatch20:53
mgedmin- vs _20:53
mgedmingood luck20:53
*** mgedmin has quit IRC20:53
amaronman, this almost killed me...20:54
*** MJ is now known as MJ|dinner21:05
*** thruflo has quit IRC21:10
*** alfborge has joined #zope3-dev21:21
*** MJ|dinner is now known as MJ21:21
alfborgeDoes anybody know what causes import error IFallbackUnauthenticatedPrincipal? (See for the traceback).21:22
alfborgeTo be honest, that question is a bit outdated as I already know what causes it.21:22
alfborgeI have, and
alfborgeThe first tries to import the name I just mentioned from the latter; the latter is ignorant of this and so the problem ensues.21:23
*** pelle__ has joined #zope3-dev21:25
*** pelle__ has quit IRC21:26
benjialfborge: since it appears no one here has the time to look into this right now, a bug report would seem to be in order21:38
*** ignas has quit IRC21:40
*** dennis__ has joined #zope3-dev21:41
*** lucielejard has joined #zope3-dev21:44
*** timte has joined #zope3-dev21:44
*** junkafarian_ has joined #zope3-dev21:44
dennis__hi! if i have a valueindex with 1000s of items ordered by a title, is there an efficient way to iterate them in the order in which they were indexed? I.e., so the intids come in such an order that the object.titles are ordered alphabetically. I want to offer a grid of a selection of entries, such that it could be "entry 100-110 out of 10,000, ordered by title"21:46
*** yvl has quit IRC21:47
dennis__usually the results of searches are ordered by intid, which has no relation to any attribute of the objects. The point is I don't want to wake up 10,000 objects to get 100 of them by title21:48
J1mIf you are going to use all of them, you could just iterate over the index itself.21:48
J1mI'm not sure the index exposes the right API to do that. It should.21:49
J1mI suspect it doesn't.21:49
dennis__well :) the part 2 is that I do need to filter the results. The BTrees intersection works fantastically, but loses any order. The bad thing is to keep the order I would, for every item in the index, check if it is in the 20 or so filtered results, and if yes, append it. But I rather check 20 times than 10,000 times21:50
J1mIf you only have 20 results, you can just sort them. :)21:51
J1mThe extremes are easy.21:51
J1mThe hard part comes when you have many results, but sill much gewer results than the entire corpus.21:52
dennis__i guess i have many many more. There's a database with all items, and several index. One index returns which items you have permissions for. That's the 20 example (though it will be hundreds to thousands)21:53
J1mAlso note that if you have to deal with lots of results, you can use a n-best algorithm, rather than sorting, which helps a little.21:53
dennis__or keep a mapping   intid->relative_order, but thats very inefficent when adding/removing21:54
J1mAnother option is to set up a catalog-like data structure using the values of interest as primary keys rather than intids.21:54
*** schwendinger has joined #zope3-dev21:54
J1mbasically, the intids are primary keys.21:55
J1mGenerally, if you have to deal with sorting, you want to arrange things so that your primary key is what you want to sort results on.21:55
J1mOf course, set merging with non-integer keys is slower, but it's better than sorting.21:56
dennis__do the BTrees intersection/etc work on non-int keys?21:56
J1mI believe so. I'm not 100% sure though.21:57
dennis__well will have to try some ideas :) thanks a lot j1m!22:00
*** agroszer_ has joined #zope3-dev22:01
regebroI heard rumours at the Plone conference that somebody is looking into and trying to actually extract the Zope2 security and Zope2 traversers from Zope2 and make them into zope3 adapters.22:07
regebroIs this true, and in that case who are these people? :-)22:07
regebroIf it is true, I'm guessing J1m should have heard something, so ping? :-)22:07
J1mUm, why would you think that?22:08
J1mSadly, I don't have my finger on the pulse of Zope 2.22:08
regebroI'm just thinking that if somebody is brave enough to try that they would have talked to you or run into problems that you would know about.22:09
J1mwarn me if you see them coming. ;)22:09
regebroSo if you haven't heard something, that indicates that the rumours aren't true.22:09
regebrook, I will. It would be kinda fun to try.22:09
*** gstratton_ has joined #zope3-dev22:11
*** agroszer has quit IRC22:12
*** alfborge has left #zope3-dev22:12
*** gstratton has quit IRC22:20
*** ignas has joined #zope3-dev22:23
zenwrylyI'm looking for documentation on BTrees families and coming up empty handed. Where can I find it?  How are they supposed to be used?22:27
*** salfield_ has joined #zope3-dev22:31
*** salfield has quit IRC22:31
*** salfield_ is now known as salfield22:31
*** schwendinger_ has joined #zope3-dev22:34
*** greenman has joined #zope3-dev22:37
*** brandon_rhodes has joined #zope3-dev22:38
*** brandon_rhodes has left #zope3-dev22:38
*** agroszer_ has quit IRC22:40
*** malthe has joined #zope3-dev22:44
*** RaFromBRC is now known as RaFromBRC|lunch22:47
*** schwendinger has quit IRC22:50
*** amaron has quit IRC22:58
*** alecm has quit IRC23:03
*** schwendinger_ has quit IRC23:03
*** alecm has joined #zope3-dev23:03
*** malthe has quit IRC23:05
*** malthe has joined #zope3-dev23:07
*** timte has quit IRC23:14
*** timte has joined #zope3-dev23:14
*** afd_ has quit IRC23:18
*** jodok has quit IRC23:24
*** jfroche has quit IRC23:24
*** gstratton has joined #zope3-dev23:35
*** RaFromBRC|lunch is now known as RaFromBRC23:45
*** gstratton_ has quit IRC23:48
*** b52laptop has quit IRC23:49
*** b52laptop has joined #zope3-dev23:50
*** dunny has quit IRC23:58
*** d2m has quit IRC23:59

Generated by 2.15.1 by Marius Gedminas - find it at!