[Zope] aq_acquire problem
Dieter Maurer
dieter@handshake.de
Thu, 9 May 2002 20:55:03 +0200
Alexander Westholm writes:
> in a product method, I'm trying to access the REQUEST... the class that
> the method lives in inherits from Acquisition.Explicit so I tried to
> access it like so: self.aq_acquire('REQUEST') which yields an error
> about aq_acquire not being there... any ideas?
Do you call it in your constructor (or "__setstate__")?
"aq_acquire" is not defined by "Acquisition.Explicit" but by the
acquisition wrappers (returned by "Acquisition.Im/Explicit.__of__").
Dieter