equal
deleted
inserted
replaced
586 self.separator = separator or self.default_separator |
586 self.separator = separator or self.default_separator |
587 |
587 |
588 def _render(self, form, field, renderer): |
588 def _render(self, form, field, renderer): |
589 curvalues, attrs = self.values_and_attributes(form, field) |
589 curvalues, attrs = self.values_and_attributes(form, field) |
590 domid = attrs.pop('id', None) |
590 domid = attrs.pop('id', None) |
591 # XXX turn this as initializer argument |
591 sep = self.separator |
592 try: |
|
593 sep = attrs.pop('separator') |
|
594 warn('[3.8] separator should be specified using initializer argument', |
|
595 DeprecationWarning) |
|
596 except KeyError: |
|
597 sep = self.separator |
|
598 options = [] |
592 options = [] |
599 for i, option in enumerate(field.vocabulary(form)): |
593 for i, option in enumerate(field.vocabulary(form)): |
600 try: |
594 try: |
601 label, value, oattrs = option |
595 label, value, oattrs = option |
602 except ValueError: |
596 except ValueError: |