[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

nobody@nowhere.com nobody@nowhere.com
Wed, 21 Aug 2002 10:59:10 -0400


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

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

      Notice that a lot of complexity is added to the code just to get
      things out of the *Reptiles* folder. Using the *with* tag you can
      make this example much easier to read::

        <dtml-var standard_html_header>

        <dtml-with Reptiles>

          <dtml-var getReptileInfo>
          <dtml-var reptileHouseMaintainer>

          <dtml-in getReptiles>
            <dtml-var species>
          </dtml-in>

        </dtml-with>

        <dtml-var standard_html_footer>

        % Anonymous User - Aug. 21, 2002 10:59 am:
         Somehow the get()-function is not interpreted correctly. I always get the following error message:
         Error Type: KeyError
         Error Value: getReptiles
         Why??