[Web-SIG] Web.py 0.2 Tutorial
Colin J. Williams
cjw at sympatico.ca
Thu Dec 27 21:43:28 CET 2007
I am exploring web.py, using:
# webPlay1.py
# plug - an attempt to avoid the crash
at line 153 in request.py
# fvars.__file__ not set
import sys
__file__= sys.argv[0]
# end of plug
import web
urls= ('/', 'index')
class index:
def GET(self):
print 'Hello world'
web.webapi.internalerror = web.debugerror
if __name__ == '__main__':
web.run(urls, globals(), web.reloader)
The above executes OK but neither IE 7
or Firefox triggers the Hello
World message.
I would welcome any suggestions.
Colin W.
More information about the Web-SIG
mailing list