web/formfields.py
branchstable
changeset 3689 deb13e88e037
parent 3575 4123323acaea
child 3720 5376aaadd16b
child 3790 34fdb8fb49d1
--- a/web/formfields.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/formfields.py	Thu Oct 15 20:29:21 2009 +0200
@@ -524,7 +524,7 @@
     if role == 'subject':
         targetschema = rschema.objects(eschema)[0]
         help = rschema.rproperty(eschema, targetschema, 'description')
-        if rschema.is_final():
+        if rschema.final:
             if rschema.rproperty(eschema, targetschema, 'internationalizable'):
                 kwargs.setdefault('internationalizable', True)
             def get_default(form, es=eschema, rs=rschema):
@@ -540,7 +540,7 @@
     else:
         kwargs.setdefault('label', (eschema.type, rschema.type))
     kwargs.setdefault('help', help)
-    if rschema.is_final():
+    if rschema.final:
         if skip_meta_attr and rschema in eschema.meta_attributes():
             return None
         fieldclass = FIELDS[targetschema]