Changeset 6762


Ignore:
Timestamp:
22/03/10 15:17:49 (9 years ago)
Author:
sdonegan
Message:

Adjusted so redirects to loginDenied template rather than producing bare error message

File:
1 edited

Legend:

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

    r6757 r6762  
    5959\n\n 
    6060Please contact the site administrator, if this needs to be arranged. 
    61 """ 
     61""" + self.__mountPoint 
    6262 
    63             return self._setErrorResponse(code=403, msg=response) 
     63            # generate the path to the loginDenied page 
     64            redirectURI = "%s/%s" % (self.__mountPoint, 'loginDenied') 
     65 
     66            #return self._setErrorResponse(code=403, msg=response) 
     67            return self.redirect(redirectURI) 
    6468         
Note: See TracChangeset for help on using the changeset viewer.