X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/27dcf25cbe250f43ea32fc9bc7a4ec6691db66e9..09b3c4465e1370966c4765ae261c910e7dd67883:/code/main.py diff --git a/code/main.py b/code/main.py index b160e63..3579794 100755 --- a/code/main.py +++ b/code/main.py @@ -68,9 +68,8 @@ class InvirtWeb(View): @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):