[Zope] time.sleep() in dtml

Andy McKay andym@ActiveState.com
Mon, 6 Nov 2000 12:49:22 -0800


Time isnt part of dtml, DateTime but doesnt include sleep. A python method
of some kind is youre only bet.

--
  Andy McKay, Developer.
  ActiveState.

----- Original Message -----
From: "Martin Winkler" <mw@martinwinkler.com>
To: <zope@zope.org>
Sent: Sunday, November 05, 2000 2:43 PM
Subject: [Zope] time.sleep() in dtml


> Hello all,
>
> some python functions work in dtml, mostly mathematical ones. But what I
do
> need at the moment is the "time.sleep(x)" function to prevent an immediate
> reply to a request of the users. I tried <dtml-var "_.time.sleep(1)"> and
> <dtml-var "_.sleep(1)">, but Zope returned an "Attribute error".
> Any ideas? Or do I have to create a special python method for this? (I'm
> not used to python until now...)
>
> Martin
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>