Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0055.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 | e3330ce65285 |
comparison
equal
deleted
inserted
replaced
1408:8a7145138330 | 1409:3265a2639182 |
---|---|
119 parsed_form = data_form.Form.fromElement(form_elt) | 119 parsed_form = data_form.Form.fromElement(form_elt) |
120 return xml_tools.dataForm2XMLUI(parsed_form, "") | 120 return xml_tools.dataForm2XMLUI(parsed_form, "") |
121 | 121 |
122 def _fieldsErr(self, failure, profile): | 122 def _fieldsErr(self, failure, profile): |
123 """ Called when something is wrong with fields request """ | 123 """ Called when something is wrong with fields request """ |
124 log.info(_("Fields request failure: %s") % str(failure.value)) | 124 log.info(_("Fields request failure: %s") % unicode(failure.value)) |
125 return failure | 125 return failure |
126 | 126 |
127 def _xmluiSearchRequest(self, raw_data, profile): | 127 def _xmluiSearchRequest(self, raw_data, profile): |
128 try: | 128 try: |
129 session_data = self._sessions.profileGet(raw_data["session_id"], profile) | 129 session_data = self._sessions.profileGet(raw_data["session_id"], profile) |
177 raise NotImplementedError("Only search through data form is implemented so far") | 177 raise NotImplementedError("Only search through data form is implemented so far") |
178 return xml_tools.dataFormResult2XMLUI(form_elt) | 178 return xml_tools.dataFormResult2XMLUI(form_elt) |
179 | 179 |
180 def _searchErr(self, failure, profile): | 180 def _searchErr(self, failure, profile): |
181 """ Called when something is wrong with search request """ | 181 """ Called when something is wrong with search request """ |
182 log.info(_("Search request failure: %s") % str(failure.value)) | 182 log.info(_("Search request failure: %s") % unicode(failure.value)) |
183 return failure | 183 return failure |