web/facet.py
changeset 4089 ff92c7d692bf
parent 4087 2b8bc4cfd6ee
child 4252 6c4f109c2b03
equal deleted inserted replaced
4088:23ce2b3fb03d 4089:ff92c7d692bf
   418                 if self.role == 'subject':
   418                 if self.role == 'subject':
   419                     if not rdef.subject in possibletypes:
   419                     if not rdef.subject in possibletypes:
   420                         continue
   420                         continue
   421                 elif not rdef.object in possibletypes:
   421                 elif not rdef.object in possibletypes:
   422                     continue
   422                     continue
   423             if rdef.role_cardinality(role) in '+*':
   423             if rdef.role_cardinality(self.role) in '+*':
   424                 return True
   424                 return True
   425         return False
   425         return False
   426 
   426 
   427     def add_rql_restrictions(self):
   427     def add_rql_restrictions(self):
   428         """add restriction for this facet into the rql syntax tree"""
   428         """add restriction for this facet into the rql syntax tree"""