Mercurial > sat_tmp
changeset 57:a1ae63fe666d
wokkel/mam: updated to urn:xmpp:mam:2 namespace
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Dec 2018 09:55:51 +0100 |
parents | 0fc9a14a0ca0 |
children | f4d569dc8e6b |
files | sat_tmp/wokkel/mam.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_tmp/wokkel/mam.py Sun Jul 08 18:27:34 2018 +0200 +++ b/sat_tmp/wokkel/mam.py Sat Dec 01 09:55:51 2018 +0100 @@ -44,7 +44,7 @@ import rsm -NS_MAM = 'urn:xmpp:mam:1' +NS_MAM = 'urn:xmpp:mam:2' NS_FORWARD = 'urn:xmpp:forward:0' FIELDS_REQUEST = "/iq[@type='get']/query[@xmlns='%s']" % NS_MAM @@ -361,7 +361,7 @@ """ @param mam: The MAM <query/> request. - @type mam: L{MAMQueryReques<wokkel.mam.MAMRequest>} + @type mam: L{MAMRequest<wokkel.mam.MAMRequest>} @return: The RSM answer. @rtype: L{RSMResponse<wokkel.rsm.RSMResponse>} @@ -420,7 +420,7 @@ PREFS_SET_REQUEST: '_onPrefsSetRequest' } - _legacyFilters = {'start': {'fieldType': 'text-single', + _mainFilters = {'start': {'fieldType': 'text-single', 'var': 'start', 'label': 'Starting time', 'desc': 'Starting time a the result period.', @@ -491,7 +491,7 @@ unsupported_fields = [] if mam_.form: for key, field in mam_.form.fields.iteritems(): - if key not in self._legacyFilters and key not in self.extra_fields: + if key not in self._mainFilters and key not in self.extra_fields: log.msg('Ignored unsupported MAM filter: %s' % field) unsupported_fields.append(key) for key in unsupported_fields: @@ -603,7 +603,7 @@ form = data_form.Form(formType, formNamespace=NS_MAM) if formType == 'form': - for kwargs in MAMService._legacyFilters.values(): + for kwargs in MAMService._mainFilters.values(): form.addField(data_form.Field(**kwargs)) elif formType == 'submit': if start: