|
Julio Mendoza
jm at eemsystems.cjb.net
Sun Jun 8 11:40:07 EST 2003
thanks, I change it to:
def _getCookie(headers_in, key):
if headers_in.has_key('Cookie'):
import Cookie
C = Cookie.SimpleCookie(headers_in['Cookie'])
if C.has_key(key):
return C[key].value
else:
return None
return None
and all is working fine.
El dom, 08-06-2003 a las 00:11, Jonathan Gardner escribió:
> >
> > def getCookie(headers_in, key):
> > if headers_in.has_key('Cookie'):
> > import Cookie
> > C = Cookie.SmartCookie(headers_in['Cookie'])
> > C.load(headers_in['Cookie'])
> > if C.has_key(key):
> > return C[key].value
> > return None
> >
>
> What line in getCookie is giving you the problem?
>
> - --
> Jonathan Gardner
> jgardner at jonathangardner.net
> (was jgardn at alumni.washington.edu)
> Live Free, Use Linux!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQE+4sWQWgwF3QvpWNwRAv8zAJ0YgfsbUXXVe2VtfR3tMXyk2O3rGQCfdsi3
> KBAjmIpvSI1xVJJxAUPDyLM=
> =Kjlg
> -----END PGP SIGNATURE-----
--
Julio Mendoza <jm at eemsystems.cjb.net>
|