quixote/form widget.py,1.34,1.35
David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote/form
In directory hewson:/tmp/cvs-serv19159/form
Modified Files:
widget.py
Log Message:
Fix two more places to use ListType instead of list.
Index: widget.py
===================================================================
RCS file: /home/cvs/quixote/form/widget.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- widget.py 31 Oct 2002 15:56:56 -0000 1.34
+++ widget.py 31 Oct 2002 17:23:30 -0000 1.35
@@ -334,7 +334,7 @@
value = request.form.get(self.name)
self.value = None
if value:
- if type(value) is list:
+ if type(value) is ListType:
raise FormValueError, "cannot select multiple values"
try:
index = int(value)
@@ -432,7 +432,7 @@
value = request.form.get(self.name)
self.value = []
if value:
- if type(value) is list:
+ if type(value) is ListType:
for val in value:
self.append_value(val)
else: