quixote/form form.ptl,1.1,1.2

Greg Ward <gward-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-serv15572

Modified Files:
	form.ptl 
Log Message:
FormValueError no longer has an 'args' attribute, so we can't treat it
as a sequence anymore.  Just grab the 'msg' attribute directly instead.


Index: form.ptl
===================================================================
RCS file: /home/cvs/quixote/form/form.ptl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- form.ptl	23 Oct 2002 20:23:37 -0000	1.1
+++ form.ptl	23 Oct 2002 20:25:42 -0000	1.2
@@ -254,7 +254,7 @@
             try:
                 val = widget.parse(request)
             except FormValueError, exc:
-                self.error[widget.name] = exc[0]
+                self.error[widget.name] = exc.msg
             else:
                 values[widget.name] = val
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.