[albatross-users] Small patch needed for ctx.redirect() & mod_python 3.0.1
Gregory Bond
gnb at itga.com.au
Mon Dec 23 12:21:54 EST 2002
I tried using ctx.redirect() under mod_python and it failed. The following
patch fixes it. I don't know if this is a mod_python 2.7->3.0 change or just a
bug in albatross.
hellcat$ diff -u albatross-1.01/albatross/apacheapp.py /usr/local/lib/python2.2/site-packages/albatross/apacheapp.py
--- albatross-1.01/albatross/apacheapp.py Tue Jul 30 17:33:49 2002
+++ /usr/local/lib/python2.2/site-packages/albatross/apacheapp.py Mon Dec 23 12:02:11 2002
@@ -31,7 +31,7 @@
return self.__req.uri
def get_servername(self):
- return self.__req.connection.server.server_hostname
+ return self.__req.server.server_hostname
def get_header(self, name):
if self.__req.headers_in.has_key(name):
hellcat$
More information about the Albatross-users
mailing list