Commit 27dfe06b authored by Aurel's avatar Aurel

add a sleep method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2fc674ae
......@@ -31,6 +31,7 @@ import os
import sys
import re
import string
import time
from Globals import package_home
from Globals import DevelopmentMode
......@@ -2766,3 +2767,10 @@ def monkeyPatch(from_class,to_class):
for id, m in from_class.__dict__.items():
if type(m) is FunctionType:
setattr(to_class, id, m)
def sleep(t=5):
"""
Wait for a given time
"""
time.sleep(t)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment