[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Zope Scripting

webmaster@zope.org webmaster@zope.org
Fri, 27 Sep 2002 17:42:31 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/ScriptingZope.stx#3-141

---------------

      Problems can occur if you hand instances of your own classes to
      Zope and expect them to work like Zope objects. For example, you
      cannot define a class in an External Method script file and
      assign it as an attribute of a Zope object. This causes problems
      with Zope's persistence machinery. You also cannot easily hand
      instances of your own classes over to DTML or scripts. The issue
      here is that your instances won't have Zope security
      information. You can define and use your own classes and
      instances to your heart's delight, just don't expect Zope to use
      them directly. Limit yourself to returning simple Python
      structures like strings, dictionaries and lists or Zope objects.

        % Anonymous User - Sep. 27, 2002 5:42 pm:
         A reference to product writing here would be ok. blf