quixote/form widget.py,1.32,1.33

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-serv516

Modified Files:
	widget.py 
Log Message:
Use types module instead of builtin types so this works in 2.1.


Index: widget.py
===================================================================
RCS file: /home/cvs/quixote/form/widget.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- widget.py	28 Oct 2002 22:54:55 -0000	1.32
+++ widget.py	29 Oct 2002 14:51:19 -0000	1.33
@@ -627,9 +627,9 @@
                   element_type=None,
                   element_name="row",
                   **args):
-        assert value is None or type(value) is list, (
+        assert value is None or type(value) is ListType, (
             "form value '%s' not a list: got %r" % (name, value))
-        assert type(element_name) in (str, htmltext), (
+        assert type(element_name) in (StringType, htmltext), (
             "form value '%s' element_name not a string: "
             "got %r" % (name, element_name))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.