vregistry.py
branch3.5
changeset 3044 27ded3bbd105
parent 3036 26827ed46860
child 3071 6ad4e6d4df86
equal deleted inserted replaced
3043:7bcb7f1c0f46 3044:27ded3bbd105
   169         to parameters
   169         to parameters
   170 
   170 
   171         raise `NoSelectableObject` if not object apply
   171         raise `NoSelectableObject` if not object apply
   172         """
   172         """
   173         if len(args) > 1:
   173         if len(args) > 1:
   174             warn('[2.5] only the request param can not be named when calling select*',
   174             warn('[3.5] only the request param can not be named when calling select*',
   175                  DeprecationWarning, stacklevel=3)
   175                  DeprecationWarning, stacklevel=3)
   176         score, winners = 0, []
   176         score, winners = 0, []
   177         for appobject in appobjects:
   177         for appobject in appobjects:
   178             appobjectscore = appobject.__select__(appobject, *args, **kwargs)
   178             appobjectscore = appobject.__select__(appobject, *args, **kwargs)
   179             if appobjectscore > score:
   179             if appobjectscore > score: