Last change
on this file since 578 was
384,
checked in by djay, 12 years ago
|
Fix asynchronous support on windows platform, fix storage of responseDocument and add a sample service in Python language using the ZOO-API. Update makefile.vc and nmake.opt to remove unneeded cgic linkage. Fix for headers section to display only if needed.
|
File size:
424 bytes
|
Rev | Line | |
---|
[384] | 1 | def demo(conf,inputs,outputs): |
---|
| 2 | import zoo,time |
---|
| 3 | i=0 |
---|
| 4 | while i < 100: |
---|
| 5 | conf["lenv"]["status"]=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.