Ignore:
Timestamp:
Dec 20, 2009, 9:45:47 PM (15 years ago)
Author:
broder
Message:

Unauthenticated front page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy-rebased/code/main.py

    r2691 r2692  
    4747
    4848from view import View
     49
     50class InvirtUnauthWeb(View):
     51    @cherrypy.expose
     52    @cherrypy.tools.mako(filename="/unauth.mako")
     53    def index(self):
     54        return {'simple': True}
    4955
    5056class InvirtWeb(View):
     
    655661    return d
    656662
    657 def unauthFront(_, _2, _3, fields):
    658     """Information for unauth'd users."""
    659     return templates.unauth(searchList=[{'simple' : True,
    660             'hostname' : socket.getfqdn()}])
    661 
    662 mapping = dict(
    663                unauth=unauthFront)
     663mapping = dict()
    664664
    665665def printHeaders(headers):
Note: See TracChangeset for help on using the changeset viewer.