[albatross-users] Bug in 1.10 w/ mod_python 2.7.8 / Apache 1.3

Dave Cole djc at object-craft.com.au
Thu Aug 7 22:18:41 EST 2003


> Using checkboxes in a form works fine as a CGI and under mod_python
> 3 on Apache 2, but causes an exception under mod_python 2.7.8 on
> Apache 1.3.
> 
> 
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.1/site-packages/albatross/app.py", line 246, in run
>     self.merge_request(ctx)
>   File "/usr/local/lib/python2.1/site-packages/albatross/app.py", line 326, in merge_request
>     ctx.merge_request()
>   File "/usr/local/lib/python2.1/site-packages/albatross/context.py", line 309, in merge_request
>     value = self.request.field_value(name)
>   File "/usr/local/lib/python2.1/site-packages/albatross/cgiapp.py", line 33, in field_value
>     return [f.value for f in field]
> AttributeError: value
> 
> In mod_python 3 the elements of field[] are
> mod_python.util.StringField objects, under mod_python2 they are
> strings.
> 
> (I never ran albatross 1.01 under mod_python 2 so this may be an old
> bug.)
> 
> The attached patch seems to fix it:

Thanks Greg.  I will merge the patch tomorrow.

- Dave

-- 
http://www.object-craft.com.au




More information about the Albatross-users mailing list