Re: [ZPT] Need a delay !!
Hi,hope you can help me.
1. Post to the right list: zope@zope.org 2. Don't post in HTML
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? cheers, Chris
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).
Peter Bengtsson wrote:
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,
So allow it! :-) See lib/python/Products/PythonScripts.py ...to see how cheers, Chris
participants (2)
-
Chris Withers -
Peter Bengtsson