web/views/schema.py
changeset 3720 5376aaadd16b
parent 3589 a5432f99f2d9
parent 3689 deb13e88e037
child 3777 3ef8cdb5fb1c
--- a/web/views/schema.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/web/views/schema.py	Mon Oct 19 15:16:41 2009 +0200
@@ -88,11 +88,11 @@
         schema = self._cw.schema
         # compute entities
         entities = sorted(eschema for eschema in schema.entities()
-                          if not (eschema.is_final() or eschema in skiptypes))
+                          if not (eschema.final or eschema in skiptypes))
         # compute relations
         if display_relations:
             relations = sorted(rschema for rschema in schema.relations()
-                               if not (rschema.is_final()
+                               if not (rschema.final
                                        or rschema in skiptypes
                                        or rschema in META_RTYPES))
         else:
@@ -337,7 +337,7 @@
         viewer = SchemaViewer(self._cw)
         layout = viewer.visit_relationschema(rschema)
         self.w(uilib.ureport_as_html(layout))
-        if not rschema.is_final():
+        if not rschema.final:
             msg = self._cw._('graphical schema for %s') % entity.name
             self.w(tags.img(src=entity.absolute_url(vid='schemagraph'),
                             alt=msg))