web/formwidgets.py
changeset 9255 46f41c3e1443
parent 9247 9785c54e707e
child 9377 4e0d8f06efbc
equal deleted inserted replaced
9254:e1369f2dba79 9255:46f41c3e1443
   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: