changeset 4073 | 03681ba6da0b |
parent 3720 | 5376aaadd16b |
child 4074 | 9cce43f52c61 |
--- a/web/facet.py Wed Dec 09 12:20:05 2009 +0100 +++ b/web/facet.py Wed Dec 09 12:23:31 2009 +0100 @@ -109,8 +109,8 @@ if rel.optional in (opt, 'both'): # optional relation return ovar - if all(rschema.rproperty(s, o, 'cardinality')[cardidx] in '1+' - for s,o in rschema.iter_rdefs()): + if all(rdef.cardinality[cardidx] in '1+' + for rdef in rschema.rdefs.values()): # mandatory relation without any restriction on the other variable for orel in ovar.stinfo['relations']: if rel is orel: