inherit from FieldWidget to inherit from the process_field_data required by the edit controller
--- a/web/views/cwproperties.py Tue Jan 19 10:42:47 2010 +0100
+++ b/web/views/cwproperties.py Tue Jan 19 10:43:48 2010 +0100
@@ -19,7 +19,7 @@
from cubicweb.web import uicfg, stdmsgs
from cubicweb.web.form import FormViewMixIn
from cubicweb.web.formfields import FIELDS, StringField
-from cubicweb.web.formwidgets import Select, TextInput, Button, SubmitButton
+from cubicweb.web.formwidgets import Select, TextInput, Button, SubmitButton, FieldWidget
from cubicweb.web.views import primary, formrenderers
@@ -258,7 +258,7 @@
# cwproperty form objects ######################################################
-class PlaceHolderWidget(object):
+class PlaceHolderWidget(FieldWidget):
def render(self, form, field, renderer):
domid = field.dom_id(form)
@@ -268,7 +268,7 @@
domid, domid, form._cw._('select a key first'))
-class NotEditableWidget(object):
+class NotEditableWidget(FieldWidget):
def __init__(self, value, msg=None):
self.value = value
self.msg = msg