Ignore:
Timestamp:
22/03/10 14:24:11 (9 years ago)
Author:
sdonegan
Message:

Added new controller for displaying error page for login problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-OaiInfoEditor/trunk/v3n_NDG3/OAIInfoEditor/oai_info_editor/controllers/home.py

    r5466 r6758  
    1313 
    1414    def index(self): 
    15         logging.debug("Rendering editor home page") 
     15        logging.info("Rendering editor home page") 
    1616        c.title = EDITOR_HOME_TITLE 
    1717        self._setUpController() 
     
    2121            del session[POP_UP_MESSAGE_SESSION_KEY] 
    2222            session.save() 
    23  
     23         
    2424        if c.user.isAdmin: 
    2525            c.createLink = h.url_for('createProviderInfo') + ADMIN_PARAMETER 
     
    3737        c.title = HELP_PAGE_TITLE 
    3838        return self._renderTemplate('genshi', 'oai_info_editor_help') 
     39         
     40     
     41     
     42    def loginDeniedPage(self): 
     43        ''' 
     44        Show a specialised error page if user tries to do anything but doesnt have the correct openId roles etc etc 
     45        ''' 
     46        logging.info("Rendering login denied page") 
     47         
     48        self._setUpController() 
     49        
     50        c.title = "Hi there Steve - this is a user login denied page" 
     51         
     52        return self._renderTemplate('genshi', 'loginDenied') 
     53     
Note: See TracChangeset for help on using the changeset viewer.