web/schemaviewer.py
branchstable
changeset 7407 a78cc15227ef
parent 7152 39c1ffc7d93f
child 9704 43c9896d0e9f
--- a/web/schemaviewer.py	Thu May 19 17:53:46 2011 +0200
+++ b/web/schemaviewer.py	Thu May 19 18:49:57 2011 +0200
@@ -151,9 +151,9 @@
                     continue
                 label = rschema.type
                 if role == 'subject':
-                    cards = rschema.rproperty(eschema, oeschema, 'cardinality')
+                    cards = rschema.rdef(eschema, oeschema).cardinality
                 else:
-                    cards = rschema.rproperty(oeschema, eschema, 'cardinality')
+                    cards = rschema.rdef(oeschema, eschema).cardinality
                     cards = cards[::-1]
                 label = '%s %s %s' % (CARD_MAP[cards[1]], label,
                                       CARD_MAP[cards[0]])