source: branches/branch-1.3/zoo-project/zoo-services/utils/status/cgi-env/service.py @ 961

Last change on this file since 961 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
Line 
1def 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
12def 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.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png