Ignore:
Timestamp:
Aug 9, 2009, 6:45:33 PM (15 years ago)
Author:
quentin
Message:

Show the cherrypy request object on the helloworld page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2403 r2407  
    7070    @cherrypy.tools.mako(filename="/helloworld.mako")
    7171    def helloworld(self):
    72         return {}
    73         return "Hello world!\nYour request: "+repr(dir(cherrypy.request))
     72        return {'request': cherrypy.request}
    7473    helloworld._cp_config['tools.require_login.on'] = False
    7574
Note: See TracChangeset for help on using the changeset viewer.