[Zope] Working with ZopeTime

Shane Hathaway shane@digicool.com
Tue, 30 May 2000 15:52:29 -0400


Chris Withers wrote:
> 
> The python expression syntax strikes again :(
> 
> Tom Scheidt wrote:
> > <dtml-if "date1 == '<dtml-var ZopeTime fmt=Day>'">
> 
> You're trying to embed DTML within python here.
> 
> you really want (untested):
> 
> <dtml-if "date1 == _DateTime.now().Day()">

Close but no brownies for you.  :-)  Make that...

<dtml-if "date1 == _.DateTime().Day()">

Shane