source:
tags/rel-1.6.0-rc1/zoo-project/zoo-services/utils/status/cgi-env/service.py
@
885
Last change on this file since 885 was 624, checked in by djay, 9 years ago | |
---|---|
File size: 433 bytes |
Line | |
---|---|
1 | def demo(conf,inputs,outputs): |
2 | import zoo,time |
3 | i=0 |
4 | while i < 100: |
5 | conf["lenv"]["message"]="Step "+str(i) |
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.