[Zope] Zope hanging after a ZServer exception (fixed)

Jure Koren jure at aufbix.org
Tue Nov 25 04:50:31 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It seems that a check wasn't exhaustive enough:

I changed the line 324 of zoperoot/ZServer/HTTPServer.py

It used to read:
if p is not None and type(p) != types.StringType:

And I changed it to:
if p is not None and type(p) != types.StringType and \
	type(p) != types.UnicodeType:

It was quite obvious from the exception that it only
checked for strings, but not unicode strings. I guess
this will change to StringTypes in the future, as zope
moves to and beyond python 2.2.

Of course, in the previous message, I frogot to say I'm
using zope 2.6.2 release.


- -- 
Jure Koren, n.i.
jure at aufbix.org, GPG pubkey @ http://aufbix.org/~i/public.key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE/wyXp9iFCvmuhrCIRAu6fAKC8Qpr+nKl2mlbPvWusYtMtE6hb5gCggI2u
3WniiH4fS2sAbFrsIXUfo9M=
=/G77
-----END PGP SIGNATURE-----




More information about the Zope mailing list