[mod_python] strange behavior of form + patch for mod_python

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sat Nov 26 15:16:24 EST 2005


Rafal -

Before, declaring a BIG bug, RTFM :-)

http://www.modpython.org/live/current/doc-html/pyapi-util-fstor.html

What you're looking for is getfirst() and getlist(), which will 
consistently return either an string or a list.

Grisha

On Sat, 26 Nov 2005, Rafal Zawadzki wrote:

> When i set one checkbox, form['testkey'] result is key. When I set two or
> more, this is a list. IMVHO it is a BIG bug. I patched my modpython to give
> always a list:


More information about the Mod_python mailing list