[Zope] Working with ZopeTime

Dieter Maurer dieter@handshake.de
Tue, 30 May 2000 23:16:47 +0200 (CEST)


Hi Tom,
 > But not with:
 > <dtml-if "date1 == '<dtml-var ZopeTime fmt=Day>'">
 > (and yes, the day I'm doing it on is Tuesday).
Usually, DTML-tags cannot be nested.
Exceptions: tags in compound tags such as "if, in, let, with, ...".
In your case, the "dtml-var" is simply not recognized
and treated as a string rather than expanded.

I assume (though I am not sure), that "ZopeTime" is a "DateTime"
object. In this case, you could use:
   <dtml-if "date1 == ZopeTime.Day()">


Dieter