comparison src/plugins/plugin_xep_0020.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents 069ad98b360d
children d04d7402b8e9
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
67 result = {} 67 result = {}
68 for field in form.fields: 68 for field in form.fields:
69 values = form.fields[field].values 69 values = form.fields[field].values
70 result[field] = values[0] if values else None 70 result[field] = values[0] if values else None
71 if len(values) > 1: 71 if len(values) > 1:
72 log.warning(_("More than one value choosed for %s, keeping the first one") % field) 72 log.warning(_(u"More than one value choosed for %s, keeping the first one") % field)
73 return result 73 return result
74 74
75 def negociate(self, feature_elt, form_type, negociable_values): 75 def negociate(self, feature_elt, form_type, negociable_values):
76 """Negociate the feature options 76 """Negociate the feature options
77 @param feature_elt: feature domish element 77 @param feature_elt: feature domish element