| *** alga has quit IRC | 00:05 | |
| *** norro has quit IRC | 00:16 | |
| *** hazmat has quit IRC | 00:17 | |
| *** benji has quit IRC | 00:22 | |
| *** RaFromBRC has joined #zope3-dev | 00:35 | |
| *** RaFromBRC has quit IRC | 00:44 | |
| *** RaFromBRC has joined #zope3-dev | 00:46 | |
| *** dobee has joined #zope3-dev | 01:06 | |
| *** afd__ has quit IRC | 01:11 | |
| *** whit is now known as whit|gym | 01:12 | |
| *** dobee has quit IRC | 01:18 | |
| *** ktwilight has joined #zope3-dev | 01:24 | |
| *** gstratton has quit IRC | 01:31 | |
| *** J1m has quit IRC | 01:35 | |
| *** ktwilight_ has quit IRC | 01:38 | |
| *** rmarianski has quit IRC | 01:50 | |
| *** RaFromBRC has quit IRC | 02:00 | |
| *** RaFromBRC has joined #zope3-dev | 02:00 | |
| *** malthe has quit IRC | 02:11 | |
| *** ignas has quit IRC | 02:34 | |
| *** ignas has joined #zope3-dev | 03:08 | |
| *** replicant is now known as hazmat | 03:23 | |
| *** ChanServ sets mode: +o hazmat | 03:23 | |
| *** reco has quit IRC | 03:27 | |
| *** ccomb has quit IRC | 03:45 | |
| *** projekt01 has quit IRC | 03:57 | |
| *** b52laptop has quit IRC | 04:14 | |
| *** aclark is now known as aclark|away | 04:21 | |
| *** RaFromBRC has quit IRC | 04:27 | |
| *** febb has joined #zope3-dev | 04:31 | |
| *** febb has quit IRC | 04:35 | |
| *** ignas has quit IRC | 04:38 | |
| *** WebMaven has quit IRC | 04:48 | |
| *** whit|gym has quit IRC | 04:56 | |
| *** whit has joined #zope3-dev | 04:58 | |
| *** rmarianski has joined #zope3-dev | 05:01 | |
| *** Ariel_Calzada has quit IRC | 05:02 | |
| *** stub has joined #zope3-dev | 05:40 | |
| *** rmarianski has quit IRC | 05:44 | |
| *** rmarianski has joined #zope3-dev | 05:53 | |
| *** niemeyer has quit IRC | 06:04 | |
| *** ruda_porto has joined #zope3-dev | 06:11 | |
| *** greenman has quit IRC | 06:21 | |
| *** stub has quit IRC | 06:26 | |
| *** [1]Doc_Dan has joined #zope3-dev | 06:38 | |
| *** alecm has quit IRC | 06:39 | |
| *** Doc_Dan has quit IRC | 06:55 | |
| *** [1]Doc_Dan is now known as Doc_Dan | 06:55 | |
| *** ruda_porto has quit IRC | 07:12 | |
| *** baijum has joined #zope3-dev | 07:32 | |
| *** chacha_chaudhry has joined #zope3-dev | 07:45 | |
| *** whit has quit IRC | 07:54 | |
| *** rmarianski has quit IRC | 08:22 | |
| *** rmarianski has joined #zope3-dev | 08:39 | |
| *** rmarianski has quit IRC | 08:44 | |
| *** dobee has joined #zope3-dev | 08:44 | |
| *** greenman has joined #zope3-dev | 08:45 | |
| *** jukart has joined #zope3-dev | 08:49 | |
| *** d2m has joined #zope3-dev | 08:50 | |
| *** jodok has joined #zope3-dev | 08:58 | |
| *** cursor has joined #zope3-dev | 09:00 | |
| *** jodok has quit IRC | 09:00 | |
| *** jodok has joined #zope3-dev | 09:01 | |
| *** Jell-O-Fishi has quit IRC | 09:14 | |
| *** timte has joined #zope3-dev | 09:21 | |
| *** afd__ has joined #zope3-dev | 09:29 | |
| *** jodok has quit IRC | 09:36 | |
| *** quodt has quit IRC | 09:43 | |
| *** jodok has joined #zope3-dev | 09:55 | |
| *** quodt has joined #zope3-dev | 10:01 | |
| *** schwendinger has joined #zope3-dev | 10:03 | |
| *** agroszer has joined #zope3-dev | 10:28 | |
| *** greenman has quit IRC | 10:29 | |
| *** pelle_ has joined #zope3-dev | 10:30 | |
| *** greenman has joined #zope3-dev | 10:32 | |
| *** markusleist has quit IRC | 10:35 | |
| *** malthe has joined #zope3-dev | 10:38 | |
| *** gstratton has joined #zope3-dev | 10:50 | |
| *** gstratton_ has joined #zope3-dev | 10:51 | |
| *** bigkevmcd has joined #zope3-dev | 11:00 | |
| *** malthe is now known as malthe|away | 11:01 | |
| *** tomus has quit IRC | 11:01 | |
| *** edgordon_ has joined #zope3-dev | 11:01 | |
| *** gstratton has quit IRC | 11:06 | |
| *** tarek has joined #zope3-dev | 11:07 | |
| *** jinty has joined #zope3-dev | 11:10 | |
| *** jfroche has joined #zope3-dev | 11:15 | |
| *** edgordon has quit IRC | 11:16 | |
| *** gstratton_ has quit IRC | 11:16 | |
| bigkevmcd | Mornin' 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 IRC | 11:28 | |
| *** markusleist has joined #zope3-dev | 11:34 | |
| *** jodok has joined #zope3-dev | 11:35 | |
| *** malthe|away is now known as malthe | 11:39 | |
| *** markusleist has quit IRC | 11:54 | |
| *** markusleist has joined #zope3-dev | 11:55 | |
| *** tarek_ has joined #zope3-dev | 12:00 | |
| *** yvl has joined #zope3-dev | 12:14 | |
| *** tarek has quit IRC | 12:15 | |
| *** jfroche_ has joined #zope3-dev | 12:30 | |
| *** jfroche has quit IRC | 12:31 | |
| *** mgedmin has joined #zope3-dev | 12:49 | |
| *** deo has joined #zope3-dev | 13:02 | |
| *** Aiste_ has joined #zope3-dev | 13:04 | |
| *** Aiste has quit IRC | 13:04 | |
| *** tomus has joined #zope3-dev | 13:12 | |
| *** b52laptop has joined #zope3-dev | 13:21 | |
| *** cursor_ has joined #zope3-dev | 13:27 | |
| *** dunny has quit IRC | 13:33 | |
| *** salfield has joined #zope3-dev | 13:34 | |
| *** cursor has quit IRC | 13:34 | |
| *** jfroche has joined #zope3-dev | 13:40 | |
| *** malthe has quit IRC | 13:50 | |
| *** J1m has joined #zope3-dev | 13:51 | |
| *** jfroche_ has quit IRC | 13:58 | |
| *** ghendi has joined #zope3-dev | 14:02 | |
| *** jfroche has quit IRC | 14:03 | |
| *** jfroche has joined #zope3-dev | 14:03 | |
| *** Doc_Dan has quit IRC | 14:09 | |
| *** Doc_Dan has joined #zope3-dev | 14:09 | |
| *** projekt01 has joined #zope3-dev | 14:10 | |
| *** afd__ has quit IRC | 14:12 | |
| *** greenman has quit IRC | 14:13 | |
| *** jfroche has quit IRC | 14:22 | |
| *** hazmat has quit IRC | 14:29 | |
| *** whit has joined #zope3-dev | 14:39 | |
| *** sorin has joined #zope3-dev | 14:41 | |
| *** sorin is now known as sorindregan | 14:41 | |
| *** mkerrin has joined #zope3-dev | 14:41 | |
| *** Ariel_Calzada has joined #zope3-dev | 14:47 | |
| timte | How can I refer to buildout.cfg develop key from same key in devel.cfg without getting circular references? | 14:57 | 
| *** afd_ has quit IRC | 15:03 | |
| timte | got it working | 15:10 | 
| *** benji has joined #zope3-dev | 15:23 | |
| *** vlado has joined #zope3-dev | 15:24 | |
| *** yvl has quit IRC | 15:26 | |
| *** rcrafton has quit IRC | 15:26 | |
| *** yvl has joined #zope3-dev | 15:28 | |
| *** niemeyer has joined #zope3-dev | 15:29 | |
| *** ignas has joined #zope3-dev | 15:33 | |
| *** stub has joined #zope3-dev | 15:41 | |
| *** hazmat has joined #zope3-dev | 15:45 | |
| *** cursor_ has quit IRC | 15:53 | |
| *** jinty has quit IRC | 15:58 | |
| *** aclark|away is now known as aclark|psc | 15:59 | |
| *** philiKON_ is now known as philiKON | 16:04 | |
| *** malthe has joined #zope3-dev | 16:04 | |
| *** afd_ has joined #zope3-dev | 16:05 | |
| *** philiKON_ has joined #zope3-dev | 16:06 | |
| *** philiKON has quit IRC | 16:07 | |
| *** philiKON_ is now known as philiKON | 16:07 | |
| *** jinty has joined #zope3-dev | 16:10 | |
| *** stub has quit IRC | 16:13 | |
| *** markusleist has quit IRC | 16:21 | |
| *** harobed has joined #zope3-dev | 16:22 | |
| *** edgordon_ has quit IRC | 16:26 | |
| *** rcrafton has joined #zope3-dev | 16:29 | |
| *** philiKON has quit IRC | 16:38 | |
| *** jodok|iPhone has joined #zope3-dev | 16:58 | |
| *** malthe has quit IRC | 17:01 | |
| *** thruflo has joined #zope3-dev | 17:11 | |
| thruflo | hi, I'm getting a "UnpickleableError: Cannot pickle <type 'zope.security._proxy._Proxy'> objects" error on basic add / edit forms for a very simple content object | 17:12 | 
| thruflo | it works when in the root folder | 17:12 | 
| thruflo | ie: i add a container & then add objects to it and can edit ok | 17:12 | 
| thruflo | but when i add the container to a site | 17:13 | 
| thruflo | i get the security error | 17:13 | 
| jodok|iPhone | /part | 17:13 | 
| jodok|iPhone | oops | 17:13 | 
| thruflo | i know I can removeSecuiryProxy but I'm using the bog standard edit forms - no special classes | 17:13 | 
| *** junkafarian has joined #zope3-dev | 17:14 | |
| * thruflo waves at junkafarian | 17:14 | |
| junkafarian | yo thruflo | 17:14 | 
| instantfoo | hay! | 17:15 | 
| junkafarian | is there a way to get more info on a 'Could not adapt' error? | 17:15 | 
| *** jodok|iPhone has quit IRC | 17:15 | |
| thruflo | ^ am I missing something obvious? | 17:15 | 
| *** jodok|iPhone has joined #zope3-dev | 17:15 | |
| junkafarian | thruflo: ? | 17:16 | 
| thruflo | junkafarian: [15:12] thruflo: hi, I'm getting a "UnpickleableError: Cannot pickle <type 'zope.security._proxy._Proxy'> objects" error on basic add / edit forms for a very simple content object | 17:16 | 
| thruflo | thruflo: it works when in the root folder, but when i add the container to a site i get the security error | 17:16 | 
| junkafarian | hmz | 17:18 | 
| thruflo | help! | 17:18 | 
| ignas | emm | 17:18 | 
| ignas | why are you adding a security proxied object into a container? | 17:18 | 
| thruflo | i just wanna add a simple 'note' object to a container | 17:19 | 
| thruflo | http://pesto.largeblue.net/trac/browser/pesto/obj/note | 17:19 | 
| junkafarian | ignas: i think the problem is that he isnt verbosely proxying the object | 17:20 | 
| ignas | the idea is - you should not be adding security wrapped objects into containers, now how the proxy got onto an object | 17:20 | 
| ignas | is a different question | 17:20 | 
| ignas | it should not happen on a newly created object | 17:20 | 
| junkafarian | its happening only on the edit forms | 17:21 | 
| junkafarian | but both add and edit forms are skin and bones | 17:21 | 
| ignas | so your edit forms are readding the object into the container | 17:21 | 
| *** jodok|iPhone has quit IRC | 17:21 | |
| ignas | while they should only modify the object | 17:21 | 
| junkafarian | the objects can be created in the container no problem | 17: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 | 
| junkafarian | it errors on what seems to be the update() function | 17: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 | 
| ignas | lisppaste6: url | 17:22 | 
| lisppaste6 | To use the lisppaste bot, visit http://paste.lisp.org/new/zope3-dev and enter your paste. | 17:22 | 
| thruflo | ^ ie: I have no view.py / class | 17:22 | 
| thruflo | ok, tx | 17:22 | 
| lisppaste6 | thruflo pasted "note configure.zcml" at http://paste.lisp.org/display/49681 | 17:23 | 
| thruflo | ie: bog simple content object, add & edit, containment etc. works fine in site root | 17:23 | 
| thruflo | but I get the UnpickleableError error within a site folder | 17:24 | 
| thruflo | which has it's own pau / auth plugin | 17: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|10 | 17:25 | |
| mgedmin | thruflo: please pastebot the full traceback | 17:26 | 
| lisppaste6 | thruflo pasted "traceback" at http://paste.lisp.org/display/49682 | 17:26 | 
| mgedmin | oh, right, it's useless at this late point | 17:27 | 
| junkafarian | mgedmin: how so? | 17:27 | 
| junkafarian | im working on the same project | 17:27 | 
| mgedmin | the question is, how the security proxied object gets attached to the containment hierarchy | 17:28 | 
| mgedmin | and the traceback happens at a later point | 17:28 | 
| junkafarian | yeah | 17:28 | 
| mgedmin | what's the auth plugin? | 17:29 | 
| mgedmin | a custom one? | 17:29 | 
| mgedmin | could be you're getting that error from DC metadata when it tries to store the creator id | 17:29 | 
| * junkafarian checks | 17:30 | |
| junkafarian | on a separate issue, is there a way to get more information on why im getting a 'Could not adapt' error? | 17:31 | 
| mgedmin | okay, here's what I'd do: I'd insert a pdb.set_trace() in ZODB/Connection.py (line 543), within a try/except UnpickleableError block, and then inspect that proxy | 17:32 | 
| mgedmin | i.e. call removeSecurityProxy from it and see what it is | 17:32 | 
| junkafarian | mgedmin: ^ | 17:32 | 
| mgedmin | no idea about debugging adapters | 17:32 | 
| mgedmin | well, you *could* get a full list of adapter registrations and see why the one you want is not in it | 17:32 | 
| mgedmin | it's a big list, I think | 17:32 | 
| mgedmin | usually it's easier to apply deductive reasoning | 17:33 | 
| *** rmarianski has joined #zope3-dev | 17:33 | |
| junkafarian | was afraid you would say something like that :P | 17:34 | 
| junkafarian | 'could not adapt' is just a rather general error :P | 17:35 | 
| *** baijum has quit IRC | 17:35 | |
| mgedmin | adapters are a pretty general mechanism | 17:35 | 
| ignas | junkafarian: what i do is - import pdb before adaptation | 17:35 | 
| ignas | and look what i am adapting | 17:35 | 
| ignas | and to what i am trying to adapt it to | 17:36 | 
| mgedmin | if you get a "command not found" error in bash, what more information do you want? | 17:36 | 
| ignas | single adaptations are trivial most of the times | 17:36 | 
| mgedmin | well, okay, bad example, you want to know what package to install to get that command | 17:36 | 
| ignas | and only multi adapters might need some internal debugging, but even then - all the tricky cases are when you get the wrong object | 17:36 | 
| junkafarian | mgedmin: hrhr | 17:36 | 
| ignas | not when you get 'failed to adapty' | 17:37 | 
| junkafarian | i was just wondering what the main causes are for adapting failures | 17:38 | 
| *** malthe has joined #zope3-dev | 17:39 | |
| junkafarian | as i dont know if it is a configuration error or whether it is something in the code | 17:39 | 
| *** WebMaven has joined #zope3-dev | 17:54 | |
| *** vlado has quit IRC | 17:55 | |
| *** ghendi has quit IRC | 17:58 | |
| *** sorindregan has quit IRC | 17:58 | |
| junkafarian | hmz | 18:00 | 
| junkafarian | it was a config error | 18:00 | 
| junkafarian | but a wierd one! | 18:00 | 
| *** Aiste_ is now known as Aiste | 18:02 | |
| *** jukart has quit IRC | 18:02 | |
| *** deo has quit IRC | 18:03 | |
| *** pelle__ has joined #zope3-dev | 18:06 | |
| *** chacha_chaudhry has quit IRC | 18:07 | |
| *** djk001 has joined #zope3-dev | 18:14 | |
| *** MJ has joined #zope3-dev | 18:18 | |
| *** alecm has joined #zope3-dev | 18:25 | |
| *** norro has joined #zope3-dev | 18:29 | |
| *** timte has quit IRC | 18:31 | |
| *** sm has quit IRC | 18:33 | |
| *** sm has joined #zope3-dev | 18:34 | |
| *** pelle_ has quit IRC | 18:36 | |
| thruflo | hey | 19:01 | 
| thruflo | apologies for dissapearing whilst mid getting help - got dragged into mtg | 19:01 | 
| thruflo | mgedmin: tx for advice, will debug as you suggest | 19:02 | 
| thruflo | ok yup, was the annotations | 19:04 | 
| * thruflo grinds his teeth | 19:04 | |
| mgedmin | hm | 19:04 | 
| mgedmin | principal id is supposed to be a string | 19:05 | 
| mgedmin | strings are never security proxied | 19:05 | 
| mgedmin | does your auth plugin use non-stringish for principal ids? | 19:05 | 
| thruflo | i'm using a standard sessions credentials auth plugin | 19:07 | 
| thruflo | and this signup principal folder as authentication plugin: http://pesto.largeblue.net/trac/browser/pesto/user/container.py | 19:09 | 
| mgedmin | so what was that object hiding behind the proxy? | 19:10 | 
| * thruflo re-bugs | 19:11 | |
| *** jukart has joined #zope3-dev | 19:15 | |
| lisppaste6 | thruflo annotated #49681 with "the obj causing the mischief" at http://paste.lisp.org/display/49681#1 | 19:20 | 
| thruflo | bizarre | 19:20 | 
| mgedmin | 8-/ | 19:21 | 
| *** harobed has quit IRC | 19:23 | |
| *** jukart has quit IRC | 19:24 | |
| * thruflo scans IZopeDublinCore to no avail | 19:24 | |
| mgedmin | do you register the dublin core adapters manually, or do you include the original zcmls? | 19:26 | 
| mgedmin | perhaps the dc adapter lost its 'trusted' attribute in zcml? | 19:27 | 
| thruflo | <implements interface="zope.annotation.interfaces.IAttributeAnnotatable" /> in the zcml | 19:27 | 
| thruflo | aha | 19:27 | 
| mgedmin | oh? | 19:28 | 
| *** Jell-O-Fishi has joined #zope3-dev | 19:28 | |
| *** gstratton has joined #zope3-dev | 19:32 | |
| *** quodt has quit IRC | 19:43 | |
| *** quodt has joined #zope3-dev | 19:44 | |
| *** projekt01 has quit IRC | 19:44 | |
| *** thruflo has quit IRC | 19:46 | |
| *** dunny has joined #zope3-dev | 19:47 | |
| *** Ariel_Calzada has quit IRC | 19:52 | |
| *** quodt has quit IRC | 19:52 | |
| *** whit is now known as whit|lunch | 20:00 | |
| *** malthe has quit IRC | 20:01 | |
| *** junkafarian has quit IRC | 20:05 | |
| *** edgordon has joined #zope3-dev | 20:05 | |
| *** jukart has joined #zope3-dev | 20:08 | |
| *** nathany has joined #zope3-dev | 20:13 | |
| *** schwendinger has quit IRC | 20:15 | |
| *** afd_ has quit IRC | 20:16 | |
| *** RaFromBRC has joined #zope3-dev | 20:17 | |
| *** afd_ has joined #zope3-dev | 20:18 | |
| *** thruflo has joined #zope3-dev | 20:19 | |
| thruflo | adsl borked | 20:20 | 
| *** whit|lunch is now known as whit | 20:24 | |
| *** ccomb has joined #zope3-dev | 20:26 | |
| *** amaron has joined #zope3-dev | 20:29 | |
| *** jukart has quit IRC | 20:31 | |
| *** mkerrin has quit IRC | 20:33 | |
| lisppaste6 | amaron pasted "What this error means?" at http://paste.lisp.org/display/49688 | 20:39 | 
| *** djk001 has left #zope3-dev | 20:39 | |
| regebro | amaron: 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 | 
| mgedmin | it means that there's no 'standard_macros' view on context | 20:43 | 
| mgedmin | which is pretty strange, as standard_macros is a view on everything | 20:44 | 
| mgedmin | do you use custom skins? | 20:44 | 
| amaron | yes, I created one and use it for other pages | 20:44 | 
| *** jfroche has joined #zope3-dev | 20:44 | |
| amaron | but this reports for AddForm derived class | 20:44 | 
| mgedmin | so? | 20:45 | 
| mgedmin | the skin is applied on the request | 20:45 | 
| mgedmin | standard_macros is part of the rotterdam skin | 20:45 | 
| mgedmin | if you use a different skin and want to use AddForm's that want standard_macros, you need to provide your own version of standard_macros | 20:46 | 
| amaron | i created my own version of standard_macros | 20:46 | 
| mgedmin | alternatively you can perhaps provide your own page template for the AddForm, one that doesn't need standard_macros | 20:46 | 
| regebro | but 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 | 
| amaron | i'm a newbie for zope3 and zope | 20:47 | 
| amaron | so u can guess why i'm lost | 20:48 | 
| amaron | i'm into this ... this is a second week | 20:48 | 
| mgedmin | zope 3 eats newbies alive for breakfast! muahahahaha | 20:48 | 
| * mgedmin is evil | 20:48 | |
| mgedmin | anyway, skins are tricky, so I avoid them | 20:48 | 
| mgedmin | can you paste the bit of zcml where you're registering your own standard_macros? | 20:49 | 
| * mgedmin also avoids AddForm's | 20:49 | |
| mgedmin | zope.formlib is generally nicer to work with than zope.app.form's zcml magic | 20:50 | 
| lisppaste6 | amaron annotated #49688 with "new skin declared here" at http://paste.lisp.org/display/49688#1 | 20:50 | 
| mgedmin | z3c.form is a new package that wants to replace zope.formlib, but I haven't actually tried it in practice | 20:50 | 
| mgedmin | hm... | 20:50 | 
| mgedmin | how do you enable the browser skin? | 20:51 | 
| mgedmin | is it made the default skin with a zcml declaration, or do you have a traversal event subscriber that calls applySkin, or what? | 20:52 | 
| amaron | i overrided defaultSkin | 20:52 | 
| amaron | and that skin works for all other pages | 20:52 | 
| amaron | except this one | 20:52 | 
| mgedmin | okay... | 20:52 | 
| amaron | which is based on AddForm | 20:52 | 
| mgedmin | hey! | 20:53 | 
| mgedmin | @@standard-macros | 20:53 | 
| mgedmin | versus standard_macros | 20:53 | 
| mgedmin | there's your mismatch | 20:53 | 
| mgedmin | - vs _ | 20:53 | 
| amaron | ahhhh | 20:53 | 
| mgedmin | good luck | 20:53 | 
| *** mgedmin has quit IRC | 20:53 | |
| amaron | lol | 20:53 | 
| amaron | man, this almost killed me... | 20:54 | 
| *** MJ is now known as MJ|dinner | 21:05 | |
| *** thruflo has quit IRC | 21:10 | |
| *** alfborge has joined #zope3-dev | 21:21 | |
| *** MJ|dinner is now known as MJ | 21:21 | |
| alfborge | Does anybody know what causes import error IFallbackUnauthenticatedPrincipal? (See http://pastebin.ca/747010 for the traceback). | 21:22 | 
| alfborge | To be honest, that question is a bit outdated as I already know what causes it. | 21:22 | 
| alfborge | I have zope.app.publication-3.4.2, and zope.app.security-3.4.0 | 21:22 | 
| alfborge | The 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-dev | 21:25 | |
| *** pelle__ has quit IRC | 21:26 | |
| benji | alfborge: since it appears no one here has the time to look into this right now, a bug report would seem to be in order | 21:38 | 
| *** ignas has quit IRC | 21:40 | |
| *** dennis__ has joined #zope3-dev | 21:41 | |
| *** lucielejard has joined #zope3-dev | 21:44 | |
| *** timte has joined #zope3-dev | 21:44 | |
| *** junkafarian_ has joined #zope3-dev | 21: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 IRC | 21: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 title | 21:48 | 
| J1m | If you are going to use all of them, you could just iterate over the index itself. | 21:48 | 
| J1m | I'm not sure the index exposes the right API to do that. It should. | 21:49 | 
| J1m | I 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 times | 21:50 | 
| J1m | If you only have 20 results, you can just sort them. :) | 21:51 | 
| J1m | The extremes are easy. | 21:51 | 
| J1m | :) | 21:51 | 
| dennis__ | hmmm | 21:51 | 
| J1m | The 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 | 
| J1m | Also 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/removing | 21:54 | 
| J1m | Another 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-dev | 21:54 | |
| J1m | basically, the intids are primary keys. | 21:55 | 
| J1m | Generally, 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 | 
| J1m | Of 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 | 
| J1m | I 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-dev | 22:01 | |
| regebro | I 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 | 
| regebro | Is this true, and in that case who are these people? :-) | 22:07 | 
| regebro | If it is true, I'm guessing J1m should have heard something, so ping? :-) | 22:07 | 
| J1m | Um, why would you think that? | 22:08 | 
| J1m | Sadly, I don't have my finger on the pulse of Zope 2. | 22:08 | 
| regebro | I'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 | 
| J1m | hehe | 22:09 | 
| J1m | warn me if you see them coming. ;) | 22:09 | 
| regebro | So if you haven't heard something, that indicates that the rumours aren't true. | 22:09 | 
| J1m | right | 22:09 | 
| regebro | ok, I will. It would be kinda fun to try. | 22:09 | 
| *** gstratton_ has joined #zope3-dev | 22:11 | |
| *** agroszer has quit IRC | 22:12 | |
| *** alfborge has left #zope3-dev | 22:12 | |
| *** gstratton has quit IRC | 22:20 | |
| *** ignas has joined #zope3-dev | 22:23 | |
| zenwryly | I'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-dev | 22:31 | |
| *** salfield has quit IRC | 22:31 | |
| *** salfield_ is now known as salfield | 22:31 | |
| *** schwendinger_ has joined #zope3-dev | 22:34 | |
| *** greenman has joined #zope3-dev | 22:37 | |
| *** brandon_rhodes has joined #zope3-dev | 22:38 | |
| *** brandon_rhodes has left #zope3-dev | 22:38 | |
| *** agroszer_ has quit IRC | 22:40 | |
| *** malthe has joined #zope3-dev | 22:44 | |
| *** RaFromBRC is now known as RaFromBRC|lunch | 22:47 | |
| *** schwendinger has quit IRC | 22:50 | |
| *** amaron has quit IRC | 22:58 | |
| *** alecm has quit IRC | 23:03 | |
| *** schwendinger_ has quit IRC | 23:03 | |
| *** alecm has joined #zope3-dev | 23:03 | |
| *** malthe has quit IRC | 23:05 | |
| *** malthe has joined #zope3-dev | 23:07 | |
| *** timte has quit IRC | 23:14 | |
| *** timte has joined #zope3-dev | 23:14 | |
| *** afd_ has quit IRC | 23:18 | |
| *** jodok has quit IRC | 23:24 | |
| *** jfroche has quit IRC | 23:24 | |
| *** gstratton has joined #zope3-dev | 23:35 | |
| *** RaFromBRC|lunch is now known as RaFromBRC | 23:45 | |
| *** gstratton_ has quit IRC | 23:48 | |
| *** b52laptop has quit IRC | 23:49 | |
| *** b52laptop has joined #zope3-dev | 23:50 | |
| *** dunny has quit IRC | 23:58 | |
| *** d2m has quit IRC | 23:59 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!