Home | History | Annotate | Download | only in python2.7

Lines Matching refs:choices

558         elif action.choices is not None:
559 choice_strs = [str(choice) for choice in action.choices]
598 if params.get('choices') is not None:
599 choices_str = ', '.join([str(c) for c in params['choices']])
600 params['choices'] = choices_str
748 - choices -- A container of values that should be allowed. If not None,
770 choices=None,
780 self.choices = choices
793 'choices',
812 choices=None,
829 choices=choices,
904 choices=None,
921 choices=choices,
1048 choices=self._name_parser_map,
1084 msg = _('unknown parser %r (choices: %s)') % tup
2265 # converted value must be one of the choices (if specified)
2266 if action.choices is not None and value not in action.choices:
2267 tup = value, ', '.join(map(repr, action.choices))