selectors.py
branchstable
changeset 4664 bd5ecd5b9494
parent 4545 9b7b3303c515
child 4719 aaed3f813ef8
equal deleted inserted replaced
4663:ebbe62209f4e 4664:bd5ecd5b9494
   525     """
   525     """
   526     def score(self, cls, req, etype):
   526     def score(self, cls, req, etype):
   527         if etype in BASE_TYPES:
   527         if etype in BASE_TYPES:
   528             return 0
   528             return 0
   529         return 1
   529         return 1
       
   530 
       
   531     def score_class(self, eclass, req):
       
   532         return 1 # necessarily true if we're there
   530 
   533 
   531 
   534 
   532 class implements(ImplementsMixIn, EClassSelector):
   535 class implements(ImplementsMixIn, EClassSelector):
   533     """Return non-zero score for entity that are of the given type(s) or
   536     """Return non-zero score for entity that are of the given type(s) or
   534     implements at least one of the given interface(s). If multiple arguments are
   537     implements at least one of the given interface(s). If multiple arguments are