Try this: <span tal:define="now python:here.ZopeTime"> <b tal:replace="now"/> </span> dragos ----- Original Message ----- From: "Kate Legere" <klegere@kfpl.ca> To: "Zope" <zope@zope.org> Sent: Monday, November 17, 2003 4:58 PM Subject: [Zope] example ?
I would like, within a ZPT to get a global variable called 'now' to the present date and time.
I can do this in dtml with <dtml-call "REQUEST.set('now', ZopeTime())"> but how do I do I it in TAL ? This was my guess : <span tal: define="now string: ZopeTime()"> but it wasn't correct :(
Kate
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )