comparison src/plugins/plugin_xep_0313.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 d17772b0fe22
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
117 def _queryArchive(self, service_s=None, form_xml=None, rsm_dict=None, node=None, profile_key=C.PROF_KEY_NONE): 117 def _queryArchive(self, service_s=None, form_xml=None, rsm_dict=None, node=None, profile_key=C.PROF_KEY_NONE):
118 service = jid.JID(service_s) if service_s else None 118 service = jid.JID(service_s) if service_s else None
119 if form_xml: 119 if form_xml:
120 form = data_form.Form.fromElement(parseXml(form_xml)) 120 form = data_form.Form.fromElement(parseXml(form_xml))
121 if form.formNamespace != NS_MAM: 121 if form.formNamespace != NS_MAM:
122 log.error(_("Expected a MAM Data Form, got instead: %s") % form.formNamespace) 122 log.error(_(u"Expected a MAM Data Form, got instead: %s") % form.formNamespace)
123 form = None 123 form = None
124 else: 124 else:
125 form = None 125 form = None
126 rsm = RSMRequest(**rsm_dict) if rsm_dict else None 126 rsm = RSMRequest(**rsm_dict) if rsm_dict else None
127 return self.queryArchive(service, form, rsm, node, profile_key) 127 return self.queryArchive(service, form, rsm, node, profile_key)