IRC log of #zope for Thursday, 2012-06-07

*** supton has quit IRC00:34
*** supton has joined #zope00:35
*** menesis has joined #zope00:54
*** ericof has quit IRC00:57
*** evilbungle has joined #zope01:00
*** evilbungle has quit IRC01:01
koshsupton: when do you have a traversable object with no acquisition context that you can apply security to?01:32
koshbetabug: 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 economy01:33
suptonkosh: 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
suptonthat means ZPublisher can traverse to things (from say, a browser view) that only provide ILocation, not necessarily need to subclass magic zope base classes01:34
suptonbecause this is "good enough" equivalent to being in the aqusiition / containment context of the object containing the user folder01:35
koshah all my stuff one way or another inherits from Persistent01:35
suptonkosh: in my case, this is not Persistent01:35
koshbut then all of my stuff was learned and built long long ago01:35
suptonkosh: just transient stuff for a JSON API01:35
suptonkosh: just subclassing object01:35
koshwhen I did not persistent items I use __of__ to wrap them from a persistent object that is pretending to contain them01:36
suptonkosh: yeah, the other thing I have seen is people using SimpleItem as a base class for stuff that is not persistent01:36
koshthat way I can set security declarations on a non-persistent item and it still works01:36
koshdone that also01:36
suptonkosh: 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
suptonworks01:37
koshcool 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 now01:37
suptonI 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 requirement01:37
suptonwas a neat discovery to make01:37
koshyeah it is pretty cool01:38
suptonkosh: yeah, I used to only use __bobo_traverse__ and __getitem__ for traversal for quite a while, now finally with the zope.publisher approach01:38
koshI just don't feel like rebuilding my stuff at this point01:40
*** supton_ has joined #zope01:47
*** supton has quit IRC01:51
*** supton_ has quit IRC01:52
*** Arfrever has joined #zope01:57
*** do3cc has joined #zope02:17
*** Spanktar has quit IRC02:17
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** frapell has quit IRC03:03
*** tiwula has quit IRC03:28
*** frapell has joined #zope04:18
*** frapell is now known as Guest7173104:18
*** thetet has quit IRC04:20
*** dayne has joined #zope06:09
*** Arfrever has quit IRC07:08
*** yvl has quit IRC07:14
*** dayne has quit IRC07:16
*** yvl has joined #zope07:19
*** Guest71731 is now known as frapell07:25
*** frapell has joined #zope07:25
*** zagy has joined #zope08:16
*** supton has joined #zope08:44
*** agroszer has joined #zope08:50
*** __mac__ has joined #zope08:59
*** __mac__1 has joined #zope09:03
*** __mac__ has quit IRC09:05
*** supton has quit IRC09:47
*** nande has quit IRC10:10
*** giacomos has joined #zope10:11
*** f10w has joined #zope10:23
*** avoinea has joined #zope10:35
*** ccomb has joined #zope11:14
*** sunew has joined #zope11:25
*** RichyB has joined #zope11:54
*** evilbungle has joined #zope12:03
*** mr_jolly has joined #zope12:29
*** do3cc has quit IRC12:45
*** ccomb has quit IRC13:08
*** zagy has quit IRC13:56
*** __mac__1 has quit IRC13:56
*** __mac__ has joined #zope13:56
*** zagy has joined #zope13:56
*** mr_jolly_ has joined #zope14:01
*** mr_jolly has quit IRC14:01
*** thetet has joined #zope14:18
*** dayne has joined #zope14:19
*** menesis has quit IRC14:43
*** bigkevmcd has quit IRC14:44
*** thetet has quit IRC14:54
*** goschtl has joined #zope14:57
*** goschtl has quit IRC15:12
*** yvl has quit IRC15:15
*** J1m has joined #zope16:11
*** J1m has quit IRC16:21
*** J1m has joined #zope16:39
*** __mac__ has quit IRC17:01
*** menesis has joined #zope17:01
*** sp0cksbeard has joined #zope17:04
*** zagy has quit IRC17:23
*** goschtl has joined #zope17:27
*** ccomb has joined #zope17:44
*** dayne has quit IRC17:49
*** thetet has joined #zope17:58
*** daMaestro has joined #zope17:59
*** goschtl has quit IRC18:13
*** giacomos has quit IRC18:14
*** giacomos has joined #zope18:16
*** __mac__ has joined #zope18:26
*** __mac__ has quit IRC18:38
*** giacomos has quit IRC18:42
*** giacomos has joined #zope18:42
*** giacomos has quit IRC18:45
*** giacomos has joined #zope18:47
*** sunew has quit IRC18:49
*** agroszer has quit IRC18:50
*** nande has joined #zope18:51
*** Arfrever has joined #zope18:54
*** eperez has joined #zope19:10
*** giacomos has quit IRC19:16
*** Spanktar has joined #zope19:25
*** runyaga has joined #zope19:29
*** runyaga has quit IRC19:29
*** runyaga has joined #zope19:29
*** avoinea has quit IRC19:30
*** runyaga has quit IRC19:31
*** runyaga has joined #zope19:31
*** runyaga has quit IRC19:31
*** runyaga has joined #zope19:31
*** supton has joined #zope19:51
*** menesis has quit IRC19:58
*** andreypopp has quit IRC19:58
*** ccomb has quit IRC20:17
*** nande has quit IRC20:29
*** TresEquis has joined #zope20:52
*** davetoo has joined #zope20:57
davetooI'm looking for the syntax rules for a Zope 2.13 zope.conf but finding dead links....20:57
davetooWhat 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
davetooIn the main zope.conf, if LOGHOME is not defined, I want to set it to a default value.20:59
*** monokrome has quit IRC21:19
*** monokrome has joined #zope21:23
*** rdz has quit IRC21:28
TresEquisdavetoo, use 'zconfig' as a search term, I think21:29
*** rdz has joined #zope21:30
TresEquisthe 'ZConfig' package is separately maintained from Zope221:30
*** monokrome has quit IRC21:31
*** monokrome has joined #zope21:32
*** __mac__ has joined #zope21:32
*** monokrome has quit IRC21:41
*** monokrome has joined #zope21:43
*** monokrome has quit IRC21:44
*** monokrome has joined #zope21:44
davetoohttp://old.zope.org/Members/fdrake/zconfig/21:47
davetoo40421:47
davetooi.e. that's the documentation link on pypi21:50
*** zagy has joined #zope21:51
ArfreverTresEquis: Are you planning support for Python 3 in Zope 4?22:14
*** menesis has joined #zope22:32
*** thetet has quit IRC22:43
*** MrTango has quit IRC22:44
*** thetet has joined #zope22:47
*** __mac__ has quit IRC22:56
*** goschtl has joined #zope22:56
mgedmindavetoo, zope.conf doesn't support conditionals, iirc23:15
mgedminthough I might be wrong (I didn't even remember it had a %define)23:16
mgedminI usually generate things like zope.conf using templates driven by zc.buildout23:16
davetoomgedmin: thanks23:17
TresEquisArfrever, I'm going at it bottom-up:  my initial plan is to port the "bicycle seat toolkit" part of the ZTK23:18
TresEquiszope.component and its dependencies23:19
*** frapell has quit IRC23:21
*** ericof has joined #zope23:36
*** goschtl has quit IRC23:39

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!