web/views/editforms.py
branchstable
changeset 3643 8513fd032d1f
parent 3636 9b16e7b6ba35
child 3674 387d51af966d
child 3689 deb13e88e037
--- a/web/views/editforms.py	Mon Oct 12 13:13:11 2009 +0200
+++ b/web/views/editforms.py	Mon Oct 12 13:16:08 2009 +0200
@@ -176,7 +176,7 @@
                 entity, rtype, role, 'edition', default, onsubmit, reload,
                 attrcategories=self.attrcategories)
             if not self.should_edit_attribute(entity, rschema, role, form):
-                self.w(self.entity.printable_value(rtype))
+                self.w(entity.printable_value(rtype))
                 return
             value = entity.printable_value(rtype) or default
             self.attribute_form(lzone, value, form,