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

webmaster@zope.org webmaster@zope.org
Wed, 25 Sep 2002 16:56:06 -0400


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

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

        One topic that bears more explanation are repeat
        variables. Repeat variables provide information about the
        current repetition. The following attributes are available on 'repeat'
        variables:

          o *index* - repetition number, starting from zero.

          o *number* - repetition number, starting from one.

          o *even* - true for even-indexed repetitions (0, 2, 4, ...).

          o *odd* - true for odd-indexed repetitions (1, 3, 5, ...).

          o *start* - true for the starting repetition (index 0).

          o *end* - true for the ending, or final, repetition.

          o *length* - length of the sequence, which will be the total number
            of repetitions.

          o *letter* - count reps with lower-case letters: "a" - "z",
          "aa" - "az", "ba" - "bz", ..., "za" - "zz", "aaa" - "aaz", and
          so forth.

          o *Letter* - upper-case version of *letter*.

          % Anonymous User - Sep. 25, 2002 4:56 pm:
           /One topic that bears more explanation are repeat variables. //#superficial
           /The following attributes are available on repeat variables/Repeat variables have the following attributes/
           blf