Store the name of the DA rather than the DA itself. Then in your code
that accesses the methods look up the DA with getattr. You could make a
property that does this if you accessed it often:
@property
def myda(self):
return getattr(self, self._da_name)
Laurence
Charlie Clark wrote:
Am
robert rottermann wrote:
Charlie Clark schrieb:
Dear all,
a simple question with hopefully a simple answer! How do I access
objects from an object's context or hierarchy? Specifically I'd like to
be able to access a ZopeDA connection for a site.
I
if you know the id of the object you are loo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wichert Akkerman wrote:
> Previously Charlie Clark wrote:
>> Am 30.10.2007 um 17:40 schrieb Wichert Akkerman:
>>
>>> __init__ is indeed the wrong place: when the instance is created it is
>>> not placed in an acquisition context yet.
>> That would inde