[Twisted-web] Matt's "forms" - validation error when field name is
not ASCII
Paul Reznicek
maillists at ivsn.com
Sat Dec 10 05:10:25 MST 2005
Hi "forms" maintainers!
Current state (note the "ä" character (German 'ae' in name):
form.addField('währung', forms.String(required=True))
You can fill some data in the form, but you permanently get the
"required" message for this field.
Attached patch open the possibility of using Unicode characters
in field names and corrects above error.
Thanks for the great package!
Paul
-------------- next part --------------
Index: form.py
===================================================================
--- form.py (Revision 147)
+++ form.py (Arbeitskopie)
@@ -81,6 +81,7 @@
def addField(self, name, type, widgetFactory=None, label=None, description=None, cssClass=None):
if self.items is None:
self.items = []
+ name = unicode(name)
type.name = name
if label is None:
label = util.titleFromName(name)
More information about the Twisted-web
mailing list