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

webmaster@zope.org webmaster@zope.org
Wed, 25 Sep 2002 17:33:22 -0400


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

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

        You can access the contents of a repeat variable using path
        expressions or Python expressions.  In path expressions, you
        write a three-part path consisting of the name 'repeat', the
        statement's variable name, and the name of the information you
        want, for example, 'repeat/item/start'.  In Python expressions,
        you use normal dictionary notation to get the repeat variable,
        then attribute access to get the information, for example,
        'python:repeat['item'].start'.

          % Anonymous User - May 2, 2002 7:40 am:
           A few double-quotes needed above.

          % Anonymous User - Sep. 25, 2002 5:33 pm:
           "python:repeat['item'].start"

           could get a complete example paragraph here.