[mod_python] Classic classes only

Webb Sprague webb.sprague at gmail.com
Thu Mar 16 18:39:23 EST 2006

Hi all,

This might have been answered somewhere else, but... When I inherit
from an class that inherits from object (thus making a new style
class), I get the backtrace below.  However, when I use old-style
classes the problem goes away.  I was just wondering if someone could
explain why, or give me a link to a discussion?




Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/mod_python/publisher.py",
line 136, in handler
    result = util.apply_fs_data(object, req.form, req=req)

  File "/usr/lib/python2.4/site-packages/mod_python/util.py", line
356, in apply_fs_data
    if not (fc.co_flags & 0x08):

UnboundLocalError: local variable 'fc' referenced before assignment

More information about the Mod_python mailing list