[Zope] example ?

Dragos Chirila d.chirila at bucarest.finsiel.ro
Mon Nov 17 09:57:31 EST 2003


Try this:

    <span tal:define="now python:here.ZopeTime">
      <b tal:replace="now"/>
    </span>

dragos

----- Original Message -----
From: "Kate Legere" <klegere at kfpl.ca>
To: "Zope" <zope at 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 at 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 )
>





More information about the Zope mailing list