Changeset 2675 for package_branches/invirt-web/cherrypy-rebased
- Timestamp:
- Dec 20, 2009, 9:44:37 PM (15 years ago)
- Location:
- package_branches/invirt-web/cherrypy-rebased/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/main.py
r2674 r2675 69 69 @cherrypy.expose 70 70 @cherrypy.tools.mako(filename="/helloworld.mako") 71 def helloworld(self): 72 return {} 73 return "Hello world!\nYour request: "+repr(dir(cherrypy.request)) 71 def helloworld(self, **kwargs): 72 return {'request': cherrypy.request, 'kwargs': kwargs} 74 73 helloworld._cp_config['tools.require_login.on'] = False 75 74 -
package_branches/invirt-web/cherrypy-rebased/code/templates/helloworld.mako
r2666 r2675 1 <%page expression_filter="h"/> 1 2 <%inherit file="skeleton.mako" /> 2 3 3 Hello world! 4 <p>Hello world!</p> 5 6 <p>kwargs:</p> 7 <pre style="white-space: pre-wrap"> 8 ${repr(kwargs)} 9 </pre> 10 11 <p>Your request:</p> 12 13 <pre style="white-space: pre-wrap"> 14 ${repr(dir(request))} 15 </pre> 4 16 5 17 <%def name="title()">
Note: See TracChangeset
for help on using the changeset viewer.