Thank you for this!

beautiful!

On May 24, 10:16 am, Anand Chitipothu <[email protected]> wrote:
> On Thu, May 24, 2012 at 1:42 PM, ljgww <[email protected]> wrote:
> > 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?
>
> Pushed a fix couple of hours ago.
>
> https://github.com/webpy/webpy/pull/122
>
> You can now call app.stop()
>
> Anand

-- 
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.

Reply via email to