source: ralphm-patches/form-coerce-values.patch @ 21:6e73325a5473

Last change on this file since 21:6e73325a5473 was 21:6e73325a5473, checked in by Ralph Meijer <ralphm@…>, 11 years ago

Split off data forms changes.

File size: 630 bytes
  • wokkel/data_form.py

    diff -r fda6b92d81a1 -r d64e96596c50 wokkel/data_form.py
    a b  
    253253            field['var'] = self.var
    254254
    255255        for value in self.values:
    256             if self.fieldType == 'boolean':
     256            if isinstance(value, bool):
    257257                value = unicode(value).lower()
    258             elif self.fieldType in ('jid-single', 'jid-multi'):
    259                 value = value.full()
     258            else:
     259                value = unicode(value)
    260260
    261261            field.addElement('value', content=unicode(value))
    262262
Note: See TracBrowser for help on using the repository browser.