[Zope] Simplified question repeat..Date - to - String

Dieter Maurer dieter@handshake.de
Wed, 14 Feb 2001 20:35:08 +0100 (CET)


Schmidt, Allen J. writes:
 > I need to use year() as a string value in a <dtml-with yearVar> type of
 > thing.
 > 
 > The folder's id is 2001
 > I need to use dtml-with to get to that folder.
 > 
 > If I use the folder name of 2001 it works fine.
 > If I use the variable name in the dtml-with, it does not work.
What you want is called "computed variable access".

  "_[expression]" and "_.getitem(expression)"

are answers to this problem.

Search the (searchable) mailing list archive for more information.



Dieter