[Zope] example ?

Dieter Maurer dieter at handshake.de
Mon Nov 17 14:09:41 EST 2003


Dragos Chirila wrote at 2003-11-17 16:57 +0200:
 > Try this:
 > 
 >     <span tal:define="now python:here.ZopeTime">
 >       <b tal:replace="now"/>
 >     </span>

It might even be better to use "now python:here.ZopeTime()"
instead of "now python:here.ZopeTime".

"ZopeTime" is a method. When you bind the method to "now",
it is called each time "now" is rendered. This is at least
an unnecessary overhead. It may also give you different results
in the same request (as the time progresses).

-- 
Dieter



More information about the Zope mailing list