Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 2413:70399d1acb47
tmp: removed sat.tmp hierarchy and fixed references to it as it is now an independant sat_tmp repository
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 Nov 2017 14:19:10 +0100 |
parents | f57a8eaec8ed |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2412:7641bef56dcd | 2413:70399d1acb47 |
---|---|
30 from sat.tools import xml_tools | 30 from sat.tools import xml_tools |
31 from sat.tools import sat_defer | 31 from sat.tools import sat_defer |
32 from sat.tools import utils | 32 from sat.tools import utils |
33 from sat.tools.common import data_format | 33 from sat.tools.common import data_format |
34 | 34 |
35 # XXX: tmp.pubsub is actually used instead of wokkel version | 35 # XXX: sat_tmp.wokkel.pubsub is actually used instead of wokkel version |
36 from wokkel import pubsub | 36 from wokkel import pubsub |
37 from wokkel import disco, iwokkel | 37 from wokkel import disco, iwokkel |
38 from zope.interface import implements | 38 from zope.interface import implements |
39 import uuid | 39 import uuid |
40 import time | 40 import time |
660 | 660 |
661 If the node already exists, it change options | 661 If the node already exists, it change options |
662 @param access: Node access model, according to xep-0060 #4.5 | 662 @param access: Node access model, according to xep-0060 #4.5 |
663 @param profile_key: profile key | 663 @param profile_key: profile key |
664 """ | 664 """ |
665 # FIXME: check if this mehtod is needed, deprecate it if not | 665 # FIXME: check if this mehtod is need, deprecate it if not |
666 client = self.host.getClient(profile_key) | 666 client = self.host.getClient(profile_key) |
667 | 667 |
668 _options = {self._p.OPT_ACCESS_MODEL: access, self._p.OPT_PERSIST_ITEMS: 1, self._p.OPT_MAX_ITEMS: -1, self._p.OPT_DELIVER_PAYLOADS: 1, self._p.OPT_SEND_ITEM_SUBSCRIBE: 1} | 668 _options = {self._p.OPT_ACCESS_MODEL: access, self._p.OPT_PERSIST_ITEMS: 1, self._p.OPT_MAX_ITEMS: -1, self._p.OPT_DELIVER_PAYLOADS: 1, self._p.OPT_SEND_ITEM_SUBSCRIBE: 1} |
669 | 669 |
670 def cb(result): | 670 def cb(result): |