web/formfields.py
changeset 3720 5376aaadd16b
parent 3589 a5432f99f2d9
parent 3689 deb13e88e037
child 3890 d7a270f50f54
--- a/web/formfields.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/formfields.py	Mon Oct 19 15:16:41 2009 +0200
@@ -586,7 +586,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):
@@ -603,7 +603,7 @@
         kwargs.setdefault('label', (eschema.type, rschema.type))
     kwargs['eidparam'] = True
     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]