[Zope] dtml expr question

Dieter Maurer dieter@handshake.de
Fri, 31 Jan 2003 21:34:13 +0100


Florian Konnertz wrote at 2003-1-31 18:00 +0100:
 > I'm working on a editPropertyForm on the editform of ZWiki. Please help 
 > me with this issue:
 > 
 > Why can i do:
 > 
 >    <dtml-var "getPropertyType(x_sequence_key)">
 > 
 > but not:
 > 
 >    <dtml-let ptype="getPropertyType(x_sequence_key)">
 >    </dtml-let>
 > 
 > I get:
 > 
 >    File /usr/local/Zope-2.5.0-src/lib/python/DocumentTemplate/DT_In.py, 
 > line 695, in renderwob
 >      (Object: propertyItems)
 >    File /usr/local/Zope-2.5.0-src/lib/python/DocumentTemplate/DT_Let.py, 
 > line 76, in render
 >      (Object: ptype=&quot;getPropertyType(x_sequence_key)&quot;)
 >    KeyError
 > 
 > I looked for similar examples and it looks always like < dtml-let 
 > variable="method(blah)" > - How can this be done?
You are right.

  Your "dtml-let" must work when your "dtml-var" does (at the
  same place).


Dieter