web/facet.py
changeset 7624 ce020f90fb8e
parent 7618 5395007c415c
child 7625 ae4cb4153490
equal deleted inserted replaced
7623:5cc7acc7a238 7624:ce020f90fb8e
   254         except AttributeError:
   254         except AttributeError:
   255             # constant restriction
   255             # constant restriction
   256             # XXX: X title LOWER(T) if it makes sense?
   256             # XXX: X title LOWER(T) if it makes sense?
   257             return None
   257             return None
   258         if rschema.final:
   258         if rschema.final:
   259             if len(ovar.stinfo['relations']) == 1:
   259             if len(ovar.stinfo['relations']) == 1 \
       
   260                    and not ovar.stinfo.get('having'):
   260                 # attribute selection
   261                 # attribute selection
   261                 return ovar
   262                 return ovar
   262             return None
   263             return None
   263         opt = 'right'
   264         opt = 'right'
   264         cardidx = 0
   265         cardidx = 0