[Zope-CMF] Accessing the "context"

Charlie Clark charlie at begeistert.org
Tue Oct 30 12:58:53 EDT 2007


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 indeed explain things!!! Is it okay to call a method which  
does this from __init__ ?

     def __init__(self, id):
         self.id = id
         self.set_connection()

     security.declarePublic('set_connection')
     def set_connection(self):
         DA = (self, 'myDA', None)

This is also not working. :-/

Thanks very much for your help.

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





More information about the Zope-CMF mailing list