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 30.10.2007 um 18:13 schrieb robert rottermann:

there are two places where you can put your code, in both cases
acquisition is fully functional.

Thanks very much! Now hit an error that my database connection object can't be pickled but at least I can access it! :-D

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to