[ZPT] Modification Time

Evan Simpson evan@zope.com
Mon, 17 Dec 2001 12:49:06 -0500


Sam Collett wrote:

> I get an error when I try this.
> 
> tal:content="python:template.bobobase_modification_time.strftime('%d/%m/%Y')"

Oops.  modtime is a method, so:

tal:content="python:template.bobobase_modification_time().strftime('%d/%m/%Y')"

..or..

tal:define="mtime template/bobobase_modification_time"
tal:content="python:mtime.strftime('%d/%m/%Y')"

Cheers,


Evan @ Zope