web/views/editforms.py
changeset 3720 5376aaadd16b
parent 3674 387d51af966d
parent 3689 deb13e88e037
child 3777 3ef8cdb5fb1c
--- a/web/views/editforms.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/views/editforms.py	Mon Oct 19 15:16:41 2009 +0200
@@ -171,7 +171,7 @@
         rschema = schema.rschema(rtype)
         lzone = self._build_landing_zone(landing_zone)
         # compute value, checking perms, build form
-        if rschema.is_final():
+        if rschema.final:
             onsubmit = ("return inlineValidateAttributeForm('%(rtype)s', '%(eid)s', '%(divid)s', "
                         "%(reload)s, '%(default)s');")
             form = self._build_form(
@@ -398,7 +398,7 @@
             form.form_add_hidden(eid_param('__cloned_eid', entity.eid),
                                  self.copying.eid)
         for rschema, role in form.editable_attributes():
-            if not rschema.is_final():
+            if not rschema.final:
                 # ensure relation cache is filed
                 rset = self.copying.related(rschema, role)
                 self.newentity.set_related_cache(rschema, role, rset)