[Zope] session
javi lopez
javi80mix at gmail.com
Tue Feb 13 06:52:11 EST 2007
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
More information about the Zope
mailing list