selectors.py
changeset 7624 ce020f90fb8e
parent 7610 838a0c910bb5
child 7879 9aae456abab5
equal deleted inserted replaced
7623:5cc7acc7a238 7624:ce020f90fb8e
   919         self.action = action
   919         self.action = action
   920         self.strict = strict
   920         self.strict = strict
   921 
   921 
   922     # hack hack hack
   922     # hack hack hack
   923     def __call__(self, cls, req, **kwargs):
   923     def __call__(self, cls, req, **kwargs):
       
   924         # hack hack hack
   924         if self.strict:
   925         if self.strict:
   925             return EntitySelector.__call__(self, cls, req, **kwargs)
   926             return EntitySelector.__call__(self, cls, req, **kwargs)
   926         return EClassSelector.__call__(self, cls, req, **kwargs)
   927         return EClassSelector.__call__(self, cls, req, **kwargs)
   927 
   928 
   928     def score(self, *args):
   929     def score(self, *args):