Show the cherrypy request object on the helloworld page
[invirt/packages/invirt-web.git] / code / main.py
index b160e63..3579794 100755 (executable)
@@ -68,9 +68,8 @@ class InvirtWeb(View):
 
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/helloworld.mako")
 
     @cherrypy.expose
     @cherrypy.tools.mako(filename="/helloworld.mako")
-    def helloworld(self):
-        return {}
-        return "Hello world!\nYour request: "+repr(dir(cherrypy.request))
+    def helloworld(self, **kwargs):
+        return {'request': cherrypy.request, 'kwargs': kwargs}
     helloworld._cp_config['tools.require_login.on'] = False
 
 def pathSplit(path):
     helloworld._cp_config['tools.require_login.on'] = False
 
 def pathSplit(path):