durusmail: quixote-users: Patch to widget.py in form2
Patch to widget.py in form2
2003-11-24
Patch to widget.py in form2
Nicola Larosa
2003-11-24
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

form2.RadiobuttonsWidget.__init__ is broken, two parameters to the call of
the SingleSelectWidget constructor, at line #428 of widget.py, survived while
they shouldn't have, namely "allowed_values" and "descriptions".

Patch attached.


P.S.: I just mentioned this as an afterthought at the end of a message deeply
embedded in a thread, and without a proper patch either. Feared it could be
overlooked. :^)


- --
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr

Nicola Larosa - nico@tekNico.net


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/wjX1Xv0hgDImBm4RAh9CAKCVoD5RJW/ktKPiZ8NUyH0xxWP60ACeMIju
6LuK7Jj173oZs+cBwoQaWio=
=7SZ6
-----END PGP SIGNATURE-----
--- widget.py   2003-11-11 17:32:21.000000000 +0100
+++ widget-new.py       2003-11-24 17:42:08.000000000 +0100
@@ -425,8 +425,7 @@
                  descriptions=None,
                  options=None,
                  delim=None):
-        SingleSelectWidget.__init__(self, name, value, allowed_values,
-                                    descriptions, options)
+        SingleSelectWidget.__init__(self, name, value, options)
         if delim is None:
             self.delim = "\n"
         else:
reply