[mod_python] Re: [ANNOUNCE] Mod_python 2.7.10

Oliver Graf ograf at rz-online.net
Fri Jan 23 07:45:42 EST 2004

On Thu, Jan 22, 2004 at 07:14:15PM -0500, Gregory (Grisha) Trubetskoy wrote:
> The Apache Software Foundation and The Apache HTTP Server Project are
> pleased to announce the release of version 2.7.10 of mod_python.

The traversion problem I discovered in 3.X is also in 2.7.

cause the loop always checks module with hasattr, any dotted module
paths (such as mylib.mymodule::MyClass.MyMethod) will fail.

Patch attached. Not tested, but the code seems unchanged in 3.X, so it
should fix the problem with the old version, too.


-------------- next part --------------
--- mod_python-2.7.10/lib/python/mod_python/apache.py.orig	2004-01-23 07:42:42.000000000 +0100
+++ mod_python-2.7.10/lib/python/mod_python/apache.py	2004-01-23 07:43:01.000000000 +0100
@@ -384,7 +384,7 @@
         parent = obj
         # don't throw attribute errors when silent
-        if silent and not hasattr(module, obj_str):
+        if silent and not hasattr(obj, obj_str):
             return None
         # this adds a little clarity if we have an attriute error

More information about the Mod_python mailing list