[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Creating Basic Zope Applications

webmaster@zope.org webmaster@zope.org
Sun, 22 Sep 2002 12:08:23 -0400


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

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

      This script uses Zope API calls to create a File and to create a
      property on it. This script performs the same sort of actions in
      a script that you could do manually; it creates a file, edits it
      and sets a property.

        % Anonymous User - Sep. 22, 2002 12:08 pm:
         This script uses Zope API calls to create a File object and insert it into the scripts context Folder. The
         last two lines create a property in the File object.
         Why create the File object in the *context* and not in the *container* of the script?