Mercurial > libervia-backend
comparison src/tmp/wokkel/mam.py @ 1285:ed2c718bfe03
tmp, plugins: fixes the imports fron sat.tmp
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 14 Jan 2015 10:44:49 +0100 |
parents | 7d9ff14a2d9d |
children | d9939b476526 |
comparison
equal
deleted
inserted
replaced
1284:41ffe2c2dddc | 1285:ed2c718bfe03 |
---|---|
14 from zope.interface import Interface, implements | 14 from zope.interface import Interface, implements |
15 from twisted.words.protocols.jabber.xmlstream import IQ, toResponse | 15 from twisted.words.protocols.jabber.xmlstream import IQ, toResponse |
16 from twisted.words.xish import domish | 16 from twisted.words.xish import domish |
17 from twisted.words.protocols.jabber import jid | 17 from twisted.words.protocols.jabber import jid |
18 from wokkel.subprotocols import IQHandlerMixin, XMPPHandler | 18 from wokkel.subprotocols import IQHandlerMixin, XMPPHandler |
19 from wokkel import disco, rsm, data_form | 19 from wokkel import disco, data_form |
20 | 20 import rsm |
21 | 21 |
22 NS_MAM = 'urn:xmpp:mam:0' | 22 NS_MAM = 'urn:xmpp:mam:0' |
23 | 23 |
24 FIELDS_REQUEST = "/iq[@type='get']/query[@xmlns='%s']" % NS_MAM | 24 FIELDS_REQUEST = "/iq[@type='get']/query[@xmlns='%s']" % NS_MAM |
25 ARCHIVE_REQUEST = "/iq[@type='set']/query[@xmlns='%s']" % NS_MAM | 25 ARCHIVE_REQUEST = "/iq[@type='set']/query[@xmlns='%s']" % NS_MAM |