Changeset 2408
- Timestamp:
- Aug 9, 2009, 6:45:33 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/main.py
r2407 r2408 69 69 @cherrypy.expose 70 70 @cherrypy.tools.mako(filename="/helloworld.mako") 71 def helloworld(self ):72 return {'request': cherrypy.request }71 def helloworld(self, **kwargs): 72 return {'request': cherrypy.request, 'kwargs': kwargs} 73 73 helloworld._cp_config['tools.require_login.on'] = False 74 74 -
package_branches/invirt-web/cherrypy/code/templates/helloworld.mako
r2407 r2408 3 3 4 4 <p>Hello world!</p> 5 6 <p>kwargs:</p> 7 <pre style="white-space: pre-wrap"> 8 ${repr(kwargs)} 9 </pre> 5 10 6 11 <p>Your request:</p>
Note: See TracChangeset
for help on using the changeset viewer.