BackTalk to Document The Zope Book (2.6 Edition)/Appendix C: Zope Page Templates Reference

[email protected] Fri, 28 May 2004 16:26:02 -0400
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/AppendixC.stx#3-173

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

      Using a module usage (pick a random choice from a list)::

        <span tal:replace="python:modules['random'].choice(['one', 
                             'two', 'three', 'four', 'five'])">
          a random number between one and five
        </span>

        % Anonymous User - May 28, 2004 4:26 pm:
         When do you use that syntax instead of an earlier example that used a path ("python:modules/string/join") to
         get at a function? Is it just author preference which to use?

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp