Source

pyptug / webpy / helloworld / hw2.py

Full commit
Francois Dion 4c58ff6 










Francois Dion 89aa2b0 
Francois Dion 4c58ff6 

Francois Dion 89aa2b0 

#!/usr/bin/env python
""" A real hello world web application using web.py """

import web


class All:
    def GET(self):
        return 'Hello, World!'

# urls to dispatch
URLS = ( '/.*', 'All',
)
# setting up a web app
if __name__ == '__main__' :
    app = web.application(URLS, globals())
    app.run()