web/uicfg.py
changeset 3729 e4f20b74af51
parent 3720 5376aaadd16b
child 3890 d7a270f50f54
--- a/web/uicfg.py	Mon Oct 19 17:42:47 2009 +0200
+++ b/web/uicfg.py	Mon Oct 19 17:49:26 2009 +0200
@@ -275,7 +275,7 @@
             sectdict.setdefault('inlined', 'hidden')
         # ensure we have a tag for each form type
         if not 'main' in sectdict:
-            if not rschema.is_final() and (
+            if not rschema.final and (
                 sectdict.get('inlined') == 'attributes' or
                 'inlined_attributes' in self.init_get(sschema, rschema, oschema,
                                                       neg_role(role))):
@@ -288,7 +288,7 @@
                     sectdict['main'] = 'attributes'
                     if not 'muledit' in sectdict:
                         sectdict['muledit'] = 'attributes'
-                elif rschema.is_final():
+                elif rschema.final:
                     sectdict['main'] = 'attributes'
                 else:
                     sectdict['main'] = 'relations'
@@ -370,7 +370,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._cw, permission, eid):
                         continue
                 elif role == 'subject':