web/views/autoform.py
branchstable
changeset 3689 deb13e88e037
parent 3595 b61f1c5e6c55
child 3720 5376aaadd16b
child 3874 7d0d4a6be046
child 3877 7ca53fc72a0a
--- a/web/views/autoform.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/views/autoform.py	Thu Oct 15 20:29:21 2009 +0200
@@ -86,7 +86,7 @@
                 if eid is None and '%s_on_new' % permission in permsoverrides.etype_get(eschema, rschema, role):
                     yield (rschema, targetschemas, role)
                     continue
-                if rschema.is_final():
+                if rschema.final:
                     if not rschema.has_perm(entity.req, permission, eid):
                         continue
                 elif role == 'subject':
@@ -126,7 +126,7 @@
         result = []
         for rschema, ttypes, role in cls.erelations_by_category(
             entity, categories, permission, strict=strict):
-            if rschema.is_final():
+            if rschema.final:
                 continue
             result.append((rschema.display_name(entity.req, role), rschema, role))
         return sorted(result)