Logo Search packages:      
Sourcecode: zope-exuserfolder version File versions

def zope-exuserfolder-0.50.0::exUserFolder::exUserFolder::redirectToLogin (   self,
  REQUEST 
)

Allow methods to call from Web 

Definition at line 981 of file exUserFolder.py.

00981                                         :
            """ Allow methods to call from Web """
            script=''
            pathinfo=''
            querystring=''
            redirectstring=''
            authFailedCode=''
            
            if not REQUEST.has_key('destination'):
                  if self.currentMembershipSource:
                        redirectstring = self.currentMembershipSource.getLoginDestination(REQUEST)
                  else:
                        script=REQUEST['SCRIPT_NAME']
                        pathinfo=REQUEST['PATH_INFO']
                        redirectstring=script+pathinfo
                        if REQUEST.has_key('QUERY_STRING'):
                              querystring='?'+REQUEST['QUERY_STRING']
                              redirectstring=redirectstring+querystring

                  REQUEST['destination']=redirectstring

            
            if REQUEST.has_key('authFailedCode'):
                  authFailedCode='&authFailedCode='+REQUEST['authFailedCode']
            
                  
                  
            if self.currentMembershipSource and self.currentMembershipSource.loginPage:
                  try:
                        REQUEST.RESPONSE.redirect('%s/%s?destination=%s%s'%(self.currentMembershipSource.baseURL, self.currentMembershipSource.loginPage,REQUEST['destination'],authFailedCode))                        
                        return
                  except:
                        pass
            return self.docLogin(self,REQUEST)

      def decodeBasicCookie(self, request, response):


Generated by  Doxygen 1.6.0   Back to index