You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by Oliver Graf <og...@rz-online.net> on 2004/01/05 11:12:45 UTC
error in mod_python.apache.resolve_object
Hi!
The resolve_object method does not work with class instances.
The error is simple: in line 551 there is a if
if silent and not hasattr(module, obj_str):
return None
this checks always module for obj_str. But it should check the current
obj in traversal!
So correct would be:
if silent and not hasattr(obj, obj_str):
return None
Regards,
Oliver.
Re: error in mod_python.apache.resolve_object
Posted by Oliver Graf <og...@rz-online.net>.
On Mon, Jan 05, 2004 at 11:12:45AM +0100, Oliver Graf wrote:
> Hi!
>
> The resolve_object method does not work with class instances.
>
> The error is simple: in line 551 there is a if
>
> if silent and not hasattr(module, obj_str):
> return None
>
> this checks always module for obj_str. But it should check the current
> obj in traversal!
>
> So correct would be:
>
> if silent and not hasattr(obj, obj_str):
> return None
ok, a patch...
Oliver.