[Zope] Re: [ZPT] Need a delay !!
Peter Bengtsson
mail@peterbe.com
Wed, 06 Mar 2002 10:33:21 +0100
>
> > I am doing a project in Zope and I need to place a delay in one of my
> python scripts in ZOPE
> > without using the python module "time.sleep" is there a nother way to
> do this???
>
>Why can't you use time.sleep?
time.sleep is not allowed in python scripts, but then create a external
method only for the delay.
delay-script.py
import time
def waitAbit(self, howlong):
time.sleep(howlong)
return "Done!"
Then you can call this from your Script (Python).