*** supton has quit IRC | 00:34 | |
*** supton has joined #zope | 00:35 | |
*** menesis has joined #zope | 00:54 | |
*** ericof has quit IRC | 00:57 | |
*** evilbungle has joined #zope | 01:00 | |
*** evilbungle has quit IRC | 01:01 | |
kosh | supton: when do you have a traversable object with no acquisition context that you can apply security to? | 01:32 |
---|---|---|
kosh | betabug: look at the bright side, it looks like a lot more countries are going to join greece and burn, republicans in the USA have recently stated their position is that if the economy gets really bad before the election that their guy has a much better chance of winning so they plan to try and tank the economy | 01:33 |
supton | kosh: I figured it out: traverse to an object that does not do acquisition, and Acquisition.aq_inContextOf() will work ALSO if you put __parent__ pointer on the object pointing to some context participating in acquisition. | 01:34 |
supton | that means ZPublisher can traverse to things (from say, a browser view) that only provide ILocation, not necessarily need to subclass magic zope base classes | 01:34 |
supton | because this is "good enough" equivalent to being in the aqusiition / containment context of the object containing the user folder | 01:35 |
kosh | ah all my stuff one way or another inherits from Persistent | 01:35 |
supton | kosh: in my case, this is not Persistent | 01:35 |
kosh | but then all of my stuff was learned and built long long ago | 01:35 |
supton | kosh: just transient stuff for a JSON API | 01:35 |
supton | kosh: just subclassing object | 01:35 |
kosh | when I did not persistent items I use __of__ to wrap them from a persistent object that is pretending to contain them | 01:36 |
supton | kosh: yeah, the other thing I have seen is people using SimpleItem as a base class for stuff that is not persistent | 01:36 |
kosh | that way I can set security declarations on a non-persistent item and it still works | 01:36 |
kosh | done that also | 01:36 |
supton | kosh: since I cannot use __of__ inside publishTraverse(), I just have publishTraverse() set the __parent__ to the view (which is participating in the acquisition chain, IIRC). | 01:37 |
supton | works | 01:37 |
kosh | cool most of what I have done is in __bobo_traverse__ which is far far older but I know it very well since I have been doing zope for about 12 years now | 01:37 |
supton | I guess what I'm saying is that __of__() requires magic base class, and for this security context purpose, __parent__ is just as good without that requirement | 01:37 |
supton | was a neat discovery to make | 01:37 |
kosh | yeah it is pretty cool | 01:38 |
supton | kosh: yeah, I used to only use __bobo_traverse__ and __getitem__ for traversal for quite a while, now finally with the zope.publisher approach | 01:38 |
kosh | I just don't feel like rebuilding my stuff at this point | 01:40 |
*** supton_ has joined #zope | 01:47 | |
*** supton has quit IRC | 01:51 | |
*** supton_ has quit IRC | 01:52 | |
*** Arfrever has joined #zope | 01:57 | |
*** do3cc has joined #zope | 02:17 | |
*** Spanktar has quit IRC | 02:17 | |
*** _mup_ has quit IRC | 03:00 | |
*** _mup_ has joined #zope | 03:00 | |
*** frapell has quit IRC | 03:03 | |
*** tiwula has quit IRC | 03:28 | |
*** frapell has joined #zope | 04:18 | |
*** frapell is now known as Guest71731 | 04:18 | |
*** thetet has quit IRC | 04:20 | |
*** dayne has joined #zope | 06:09 | |
*** Arfrever has quit IRC | 07:08 | |
*** yvl has quit IRC | 07:14 | |
*** dayne has quit IRC | 07:16 | |
*** yvl has joined #zope | 07:19 | |
*** Guest71731 is now known as frapell | 07:25 | |
*** frapell has joined #zope | 07:25 | |
*** zagy has joined #zope | 08:16 | |
*** supton has joined #zope | 08:44 | |
*** agroszer has joined #zope | 08:50 | |
*** __mac__ has joined #zope | 08:59 | |
*** __mac__1 has joined #zope | 09:03 | |
*** __mac__ has quit IRC | 09:05 | |
*** supton has quit IRC | 09:47 | |
*** nande has quit IRC | 10:10 | |
*** giacomos has joined #zope | 10:11 | |
*** f10w has joined #zope | 10:23 | |
*** avoinea has joined #zope | 10:35 | |
*** ccomb has joined #zope | 11:14 | |
*** sunew has joined #zope | 11:25 | |
*** RichyB has joined #zope | 11:54 | |
*** evilbungle has joined #zope | 12:03 | |
*** mr_jolly has joined #zope | 12:29 | |
*** do3cc has quit IRC | 12:45 | |
*** ccomb has quit IRC | 13:08 | |
*** zagy has quit IRC | 13:56 | |
*** __mac__1 has quit IRC | 13:56 | |
*** __mac__ has joined #zope | 13:56 | |
*** zagy has joined #zope | 13:56 | |
*** mr_jolly_ has joined #zope | 14:01 | |
*** mr_jolly has quit IRC | 14:01 | |
*** thetet has joined #zope | 14:18 | |
*** dayne has joined #zope | 14:19 | |
*** menesis has quit IRC | 14:43 | |
*** bigkevmcd has quit IRC | 14:44 | |
*** thetet has quit IRC | 14:54 | |
*** goschtl has joined #zope | 14:57 | |
*** goschtl has quit IRC | 15:12 | |
*** yvl has quit IRC | 15:15 | |
*** J1m has joined #zope | 16:11 | |
*** J1m has quit IRC | 16:21 | |
*** J1m has joined #zope | 16:39 | |
*** __mac__ has quit IRC | 17:01 | |
*** menesis has joined #zope | 17:01 | |
*** sp0cksbeard has joined #zope | 17:04 | |
*** zagy has quit IRC | 17:23 | |
*** goschtl has joined #zope | 17:27 | |
*** ccomb has joined #zope | 17:44 | |
*** dayne has quit IRC | 17:49 | |
*** thetet has joined #zope | 17:58 | |
*** daMaestro has joined #zope | 17:59 | |
*** goschtl has quit IRC | 18:13 | |
*** giacomos has quit IRC | 18:14 | |
*** giacomos has joined #zope | 18:16 | |
*** __mac__ has joined #zope | 18:26 | |
*** __mac__ has quit IRC | 18:38 | |
*** giacomos has quit IRC | 18:42 | |
*** giacomos has joined #zope | 18:42 | |
*** giacomos has quit IRC | 18:45 | |
*** giacomos has joined #zope | 18:47 | |
*** sunew has quit IRC | 18:49 | |
*** agroszer has quit IRC | 18:50 | |
*** nande has joined #zope | 18:51 | |
*** Arfrever has joined #zope | 18:54 | |
*** eperez has joined #zope | 19:10 | |
*** giacomos has quit IRC | 19:16 | |
*** Spanktar has joined #zope | 19:25 | |
*** runyaga has joined #zope | 19:29 | |
*** runyaga has quit IRC | 19:29 | |
*** runyaga has joined #zope | 19:29 | |
*** avoinea has quit IRC | 19:30 | |
*** runyaga has quit IRC | 19:31 | |
*** runyaga has joined #zope | 19:31 | |
*** runyaga has quit IRC | 19:31 | |
*** runyaga has joined #zope | 19:31 | |
*** supton has joined #zope | 19:51 | |
*** menesis has quit IRC | 19:58 | |
*** andreypopp has quit IRC | 19:58 | |
*** ccomb has quit IRC | 20:17 | |
*** nande has quit IRC | 20:29 | |
*** TresEquis has joined #zope | 20:52 | |
*** davetoo has joined #zope | 20:57 | |
davetoo | I'm looking for the syntax rules for a Zope 2.13 zope.conf but finding dead links.... | 20:57 |
davetoo | What I'm trying to do is conditional variable expansion; I want to %define LOGHOME in a separate .conf file, which then includes the main zope.conf. | 20:59 |
davetoo | In the main zope.conf, if LOGHOME is not defined, I want to set it to a default value. | 20:59 |
*** monokrome has quit IRC | 21:19 | |
*** monokrome has joined #zope | 21:23 | |
*** rdz has quit IRC | 21:28 | |
TresEquis | davetoo, use 'zconfig' as a search term, I think | 21:29 |
*** rdz has joined #zope | 21:30 | |
TresEquis | the 'ZConfig' package is separately maintained from Zope2 | 21:30 |
*** monokrome has quit IRC | 21:31 | |
*** monokrome has joined #zope | 21:32 | |
*** __mac__ has joined #zope | 21:32 | |
*** monokrome has quit IRC | 21:41 | |
*** monokrome has joined #zope | 21:43 | |
*** monokrome has quit IRC | 21:44 | |
*** monokrome has joined #zope | 21:44 | |
davetoo | http://old.zope.org/Members/fdrake/zconfig/ | 21:47 |
davetoo | 404 | 21:47 |
davetoo | i.e. that's the documentation link on pypi | 21:50 |
*** zagy has joined #zope | 21:51 | |
Arfrever | TresEquis: Are you planning support for Python 3 in Zope 4? | 22:14 |
*** menesis has joined #zope | 22:32 | |
*** thetet has quit IRC | 22:43 | |
*** MrTango has quit IRC | 22:44 | |
*** thetet has joined #zope | 22:47 | |
*** __mac__ has quit IRC | 22:56 | |
*** goschtl has joined #zope | 22:56 | |
mgedmin | davetoo, zope.conf doesn't support conditionals, iirc | 23:15 |
mgedmin | though I might be wrong (I didn't even remember it had a %define) | 23:16 |
mgedmin | I usually generate things like zope.conf using templates driven by zc.buildout | 23:16 |
davetoo | mgedmin: thanks | 23:17 |
TresEquis | Arfrever, I'm going at it bottom-up: my initial plan is to port the "bicycle seat toolkit" part of the ZTK | 23:18 |
TresEquis | zope.component and its dependencies | 23:19 |
*** frapell has quit IRC | 23:21 | |
*** ericof has joined #zope | 23:36 | |
*** goschtl has quit IRC | 23:39 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!