web/views/baseforms.py
branchtls-sprint
changeset 906 c26156f0885e
parent 887 51e371245bc5
child 985 6a25c58a1c23
--- a/web/views/baseforms.py	Fri Feb 20 17:20:29 2009 +0100
+++ b/web/views/baseforms.py	Fri Feb 20 17:20:39 2009 +0100
@@ -29,7 +29,7 @@
 
 _ = unicode
 
-from cubicweb.web.form import MultipleFieldsForm, EntityFieldsForm, TextField, \
+from cubicweb.web.form import MultipleFieldsForm, EntityFieldsForm, StringField, \
      RichTextField, HiddenInput
 
 
@@ -73,8 +73,9 @@
 
 
 class ChangeStateForm(EntityFieldsForm):
-    __method = TextField(name='__method', initial='set_state', widget=HiddenInput)
-    state = TextField(widget=HiddenInput, eidparam=True)
+    __method = StringField(name='__method', initial='set_state', widget=HiddenInput)
+    state = StringField(widget=HiddenInput, eidparam=True)
+    # XXX format field
     trcomment = RichTextField(eidparam=True)
 
     def form_buttons(self):