source:
trunk/zoo-project/zoo-services/utils/status/cgi-env/service.py
@
830
Last change on this file since 830 was 624, checked in by djay, 10 years ago | |
---|---|
File size: 433 bytes |
Rev | Line | |
---|---|---|
[384] | 1 | def demo(conf,inputs,outputs): |
2 | import zoo,time | |
3 | i=0 | |
4 | while i < 100: | |
[624] | 5 | conf["lenv"]["message"]="Step "+str(i) |
[384] | 6 | zoo.update_status(conf,i) |
7 | time.sleep(0.5) | |
8 | i+=1 | |
9 | conf["lenv"]["message"]=zoo._("Error executing the service") | |
10 | return zoo.SERVICE_FAILED | |
11 | ||
12 | def demo1(conf,inputs,outputs): | |
13 | conf["lenv"]["message"]=zoo._("Error executing the service") | |
14 | return zoo.SERVICE_FAILED |
Note: See TracBrowser
for help on using the repository browser.