i did it, but it donĀ“t work,

def extractCredentials(self, request):
creds = {}
       login = request.get('__ac_name', '')

       if login:
           # Look in the request for the names coming from the login form
           login = request.get('__ac_name', '')
           password = request.get('__ac_password', '')

           if login:
               creds['login'] = login
               creds['password'] = password

       if creds:
           creds['remote_host'] = request.get('REMOTE_HOST', '')

           try:
               creds['remote_address'] = request.getClientAddr()
           except AttributeError:
               creds['remote_address'] = request.get('REMOTE_ADDR', '')

       session = self.REQUEST.SESSION
       session.set('_key', credentials)
       creds = session.get('_key', None)
       if creds is not None:
           return  creds

       return None

can you help me?? Thanks
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to