equal
deleted
inserted
replaced
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 |