# HG changeset patch # User Sylvain Thénault # Date 1261419645 -3600 # Node ID f7830377b21588613cc2a04b2d1e29dde7dacf79 # Parent 1bbb0ee42c8e3437e3c0586dc973d78a1e301007 yams api update diff -r 1bbb0ee42c8e -r f7830377b215 web/views/owl.py --- a/web/views/owl.py Mon Dec 21 19:18:49 2009 +0100 +++ b/web/views/owl.py Mon Dec 21 19:20:45 2009 +0100 @@ -96,10 +96,7 @@ if not self.should_display_rschema(eschema, rschema, role): continue for oeschema in targetschemas: - if role == 'subject': - card = rschema.rproperty(eschema, oeschema, 'cardinality')[0] - else: - card = rschema.rproperty(oeschema, eschema, 'cardinality')[1] + card = rschema.role_rdef(eschema, oeschema, role).role_cardinality(role) cardtag = OWL_CARD_MAP[card] if cardtag: self.w(u'''