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__()
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."""