> OK, I've coded your patch slightly differently:
>
> --- mod_python_handler.py 2001/09/28 21:03:22 1.5
> +++ mod_python_handler.py 2001/10/15 13:24:42
> @@ -44,4 +44,7 @@
> else:
> - if not name2publisher.has_key(package):
> - name2publisher[package] = ModPythonPublisher(package)
> - return name2publisher[package].publish_modpython(req)
> + pub = name2publisher.get(package)
> + if pub is None:
> + pub = ModPythonPublisher(package)
> + pub.setup_logs()
> + name2publisher[package] = pub
> + return pub.publish_modpython(req)
>
> Can you apply that to the original mod_python_handler from
> Quixote 0.4.1
> and verify that it works?
>
Greg,
Would it be better to do:
class ModPythonPublisher(Publisher):
def __init__(self, req):
Publisher.__init__(self):
self.setup_logs()
Ray
CONFIDENTIALITY - The information in this e-mail and any attachment is
confidential and is intended only for the named recipient(s). The E-mail
may not be disclosed or used by any person other than the addressee, nor may
it be copied in any way. If you are not a named recipient please notify the
sender immediately and delete any copies of this message.