Closed: (MODPYTHON-25) apply_fs_data() does not work with
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Closed: (MODPYTHON-25) apply_fs_data() does not work with




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Closed: (MODPYTHON-25) apply_fs_data() does not work with  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-06 07:45 AM

[ http://issues.apache.org/jira/brows...HON-25?page=all ]

Graham Dumpleton closed MODPYTHON-25:
-------------------------------------


> apply_fs_data() does not work with "new style" objects
> ------------------------------------------------------
>
>          Key: MODPYTHON-25
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-25
>      Project: mod_python
>         Type: Bug
>     Versions: 3.1.3
>  Environment: gentoo-linux, apache 2, Python 2.3.4
>     Reporter: Bruno Desthuilliers
>     Assignee: Nicolas Lehuen
>     Priority: Minor
>      Fix For: 3.2.7

>
> util.py v.1.21, apply_fs_data()
> Trying to publish instances of a new style class, you get an exception
> (UnboundLocalError: local variable 'fc' referenced before assignment)
> pointing to util.py, line 356
> What happens is that the test line 336 doesn't work for new style classes,
 letting the code fallback to line 356 without fc being defined.
> The fix is pretty trivial: rewrite line 336 as:
>     if type(obj) is InstanceType or isinstance(obj, object):
> Which leads to a second fix: the first arg of the function is named 'object', whic
h seems sensible, but is also the name of the new style classes base class, so s/obj
ect/obj/ in that code is also needed.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register