X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/426183788de4f8f68adce1a03860294cf446bcf1..618e384daea47ffcacee824c36a041f4a38f4ea5:/code/main.py diff --git a/code/main.py b/code/main.py index baf4ff9..361fbbd 100755 --- a/code/main.py +++ b/code/main.py @@ -47,6 +47,12 @@ from invirt.common import InvalidInput, CodeError from view import View +class InvirtUnauthWeb(View): + @cherrypy.expose + @cherrypy.tools.mako(filename="/unauth.mako") + def index(self): + return {'simple': True} + class InvirtWeb(View): def __init__(self): super(self.__class__,self).__init__() @@ -654,13 +660,7 @@ def infoDict(username, state, machine): fields = fields) return d -def unauthFront(_, _2, _3, fields): - """Information for unauth'd users.""" - return templates.unauth(searchList=[{'simple' : True, - 'hostname' : socket.getfqdn()}]) - -mapping = dict( - unauth=unauthFront) +mapping = dict() def printHeaders(headers): """Print a dictionary as HTTP headers."""