|
Oliver Graf
ograf at rz-online.net
Thu Feb 26 08:57:43 EST 2004
On Wed, Feb 25, 2004 at 07:28:12PM +0100, Oliver Graf wrote:
> Some weeks ago I reported a bug in the resolve_object method of
> mod_python.apache. It hinders the use of dotted object references in
> Handler definitions like:
>
> PythonHandler some.module::someclass.method
>
> Without the fix mod_python fails to find 'method' below 'someclass'.
>
> The fix has been included into mod_python 3.1.3, but is not in the
> 2.7.X branch. Please include the fix in the next release of 2.7.X,
> too.
To make it a bit simpler, here is a diff for this. Please apply to the
2.7 branch.
Oliver.
-------------- next part --------------
--- mod_python-2.7.10/lib/python/mod_python/apache.py.orig 2004-02-26 08:55:57.000000000 +0100
+++ mod_python-2.7.10/lib/python/mod_python/apache.py 2004-02-26 08:56:24.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
|