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

nobody@nowhere.com nobody@nowhere.com
Tue, 27 Aug 2002 13:54:34 -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-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

        % krump - Aug. 27, 2002 1:54 pm:
         It is not a working example. If there were a function called 'getReptileInfo()' and say a string property for
         the Reptiles folder called 'reptileHouseMaintainer' it might work.