source: trunk/zoo-project/zoo-services/utils/status/cgi-env/service.py @ 624

Last change on this file since 624 was 624, checked in by djay, 9 years ago

Fix for python support.

File size: 433 bytes
Line 
1def 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
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