All, 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? -- Alex
Hi Alex, can you give a little more details ? What you using ? PythonScript ZClass ExternalScript Python product on file system Can you give the complete method as source ? Dirk Alexander Westholm schrieb:
All,
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?
-- Alex
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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
participants (3)
-
Alexander Westholm -
Dieter Maurer -
Dirk Datzert