import web
urls = (
'/', 'Index',
'/shutdown', 'shutdown',
)
class Index:
def GET(self):
return "hello world!"
class shutdown:
def GET(self):
import sys
sys.exit(0)
app = web.application(urls,globals())
if __name__ == '__main__':
app.run()
---------------
browsing to / renders hello world.
browsing to /shutdown shall shut server down (it does, but not always
python around it)
any suggestions how to programatically break-out from the main event
loop more gracefully?
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.