--- a/web/views/formrenderers.py Tue Sep 22 12:11:12 2009 +0200
+++ b/web/views/formrenderers.py Tue Sep 22 13:08:42 2009 +0200
@@ -16,7 +16,7 @@
from cubicweb.appobject import AppObject
from cubicweb.selectors import entity_implements, yes
from cubicweb.web import eid_param, formwidgets as fwdgs
-from cubicweb.web.formfields import HiddenInitialValueField
+from cubicweb.web.widgets import checkbox
def checkbox(name, value, attrs='', checked=None):
if checked is None:
@@ -168,8 +168,6 @@
return tag + '>'
def display_field(self, form, field):
- if isinstance(field, HiddenInitialValueField):
- field = field.visible_field
return (self.display_fields is None
or field.name in form.internal_fields
or (field.name, field.role) in self.display_fields
@@ -257,8 +255,6 @@
def display_field(self, form, field):
if not super(EntityBaseFormRenderer, self).display_field(form, field):
- if isinstance(field, HiddenInitialValueField):
- field = field.visible_field
ismeta = form.edited_entity.e_schema.is_metadata(field.name)
return ismeta is not None and (
ismeta[0] in self.display_fields or