Changeset 5673 for TI01-discovery/trunk


Ignore:
Timestamp:
27/08/09 16:37:34 (10 years ago)
Author:
sdonegan
Message:

Incorporating changes made by Phil to sort redirection when errors occur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/lib/security_redirector.py

    r5470 r5673  
    3535 
    3636class RedirectFollowingAccessDenied(PEPResultHandlerMiddleware): 
     37    mountPoint = '/oai-info-editor' 
    3738     
    3839    @NDGSecurityMiddlewareBase.initCall 
     
    4647        path = environ.get('PATH_INFO', '') 
    4748        if path == '/home' and '?' + queryString != ADMIN_PARAMETER: 
    48             return self.redirect("%s%s" %(path, ADMIN_PARAMETER)) 
     49            return self.redirect("%s%s%s" %(RedirectFollowingAccessDenied.mountPoint, 
     50                                            path, ADMIN_PARAMETER)) 
    4951        else: 
    5052            response = \ 
Note: See TracChangeset for help on using the changeset viewer.