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

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
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.

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.