[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Basic DTML

webmaster at zope.org webmaster at zope.org
Tue Jan 6 20:50:00 EST 2004


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/DTML.stx#3-31

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

      Create a Script (Python) object in your sandbox folder named
      "actors".  Give the script the following body and save it::

        ## Script (Python) "actors"
        ##bind container=container
        ##bind context=context
        ##bind namespace=
        ##bind script=script
        ##bind subpath=traverse_subpath
        ##parameters=
        ##title=
        ##
        return ['Jack Lemmon', 'Ed Harris','Al Pacino', 'Kevin Spacey', 'Alan Arkin']

        % Anonymous User - Nov. 18, 2003 5:40 am:
         What do the '##''s do?
         Presumably not comments.

        % Anonymous User - Dec. 12, 2003 12:59 pm:
         Nope, not comments. They're interpreted as parameter data, see the section on Using Basic Zope Objects, a few
         levels up.

        % Anonymous User - Jan. 6, 2004 8:50 pm:
         For noobs like me:
         ## shows up under the "Bindings" tab after the script(Python) is saved.



More information about the ZDP mailing list