On Sat, 2003-01-11 at 00:42, Randall Randall wrote:
> That is, in SelectField.selected(self, key, default), there
> is
>     return key == default
> which doesn't work when the key is an integer, as most (of
> my) selectbox values are.  Changing this line to
>     return str(key) == str(default)
> seems to fix the problem for me, but may simply be covering
> it up...

No, that seems reasonable -- keys are turned into strings anyway, so the
test might as well be with the string versions.  The change is in CVS.

-- 
Ian Bicking           Colorstudy Web Development
[EMAIL PROTECTED]   http://www.colorstudy.com
PGP: gpg --keyserver pgp.mit.edu --recv-keys 0x9B9E28B7
4869 N Talman Ave, Chicago, IL 60625 / (773) 275-7241



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to