Your message dated Wed, 8 Mar 2006 16:40:54 -0700
with message-id <[EMAIL PROTECTED]>
and subject line (no subject)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: quixote
Version: 1.0-1
Severity: important


I'm using quixote with mod_python. When I access a script with an error
I get the following response:


Mod_python error: "PythonHandler quixote.mod_python_handler"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 193, in 
Dispatch
    result = object(req)

  File "/usr/lib/python2.3/site-packages/quixote/mod_python_handler.py", line 
81, in handler
    return pub.publish_modpython(req)

  File "/usr/lib/python2.3/site-packages/quixote/mod_python_handler.py", line 
50, in publish_modpython
    apache.build_cgi_env(req))

  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 541, in 
publish
    output = self.process_request(request, env)

  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 528, in 
process_request
    output = self.finish_failed_request(request)

  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 373, in 
finish_failed_request
    self.log("exception caught")

  File "/usr/lib/python2.3/site-packages/quixote/mod_python_handler.py", line 
34, in log
    self.__apache_request.log_error(msg)

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 85, in 
__getattr__
    raise AttributeError, attr

AttributeError: log_error



I couldn't find a log_error method for the request object in the mod_python 
documentation. The following patch fixes the error for me:

--- /usr/lib/python2.3/site-packages/quixote/mod_python_handler.py      
2004-04-23 15:24:56.000000000 +0200
+++ mod_python_handler.py       2004-09-07 20:53:39.000000000 +0200
@@ -30,10 +30,11 @@

     def log(self, msg):
         if self.error_log is self.__error_log:
-            if self.__apache_request:
-                self.__apache_request.log_error(msg)
-            else:
-                apache.log_error(msg)
+            #if self.__apache_request:
+            #    self.__apache_request.log_error(msg)
+            #else:
+            #    apache.log_error(msg)
+            apache.log_error(msg)
         else:
             Publisher.log(self, msg)


__apache_request isn't used anywhere else, so it can probably removed
completely.

Greets,
Philip

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C

Versions of packages quixote depends on:
ii  python2.3                     2.3.4-5    An interactive high-level object-o

-- no debconf information


--- End Message ---
--- Begin Message ---
Finally closing this bug fixed previously in an NMU.

--- End Message ---

Reply via email to