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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to