[Zope] AttributeError: getOwner

Dieter Maurer dieter@handshake.de
Fri, 26 Jul 2002 21:01:34 +0200


THerp@apriori.de writes:
 > ...
 > However, since I condensed the code to simply tell each component to render
 > itself, I get an error when I try to modify the component via the
 > interface. I tracked it down to common.manage_changeProperties, which
 > throws an AttributeError, error value: getOwner.
 > ...
 > from Products.PythonScripts.standard import DTML
 > ...
 > myDTML = DTML(the_template.document_src())
 > ...
 > print myDTML(context, request, response)
I fear, this stopped working with Zope 2.2.

  The object "DTML" returns does (apparently) not have an owner.
  Since Zope 2.2, an owner is essential to protect against
  Trojan horses (read the Zope 2.2 security documentation).


Dieter