Mercurial > libervia-backend
comparison src/plugins/plugin_misc_groupblog.py @ 742:03744d9ebc13
plugin XEP-0033: implementation of the addressing feature:
- frontends pass the recipients in the extra parameter of sendMessage
- backend checks if the target server supports the feature (this is not done yet by prosody plugin)
- features and identities are cached per profile and server
- messages are duplicated in history for now (TODO: redesign the database)
- echos signals are also duplicated to the sender (FIXME)
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 11 Dec 2013 17:16:53 +0100 |
parents | 80c1072390f3 |
children | 812dc38c0094 |
comparison
equal
deleted
inserted
replaced
741:00318e60a06a | 742:03744d9ebc13 |
---|---|
138 if not hasattr(client, "item_access_pubsub"): | 138 if not hasattr(client, "item_access_pubsub"): |
139 debug(_('Looking for item-access power pubsub server')) | 139 debug(_('Looking for item-access power pubsub server')) |
140 #we don't have any pubsub server featuring item access yet | 140 #we don't have any pubsub server featuring item access yet |
141 client.item_access_pubsub = None | 141 client.item_access_pubsub = None |
142 client._item_access_pubsub_pending = defer.Deferred() | 142 client._item_access_pubsub_pending = defer.Deferred() |
143 for entity in self.host.memory.getServerServiceEntities("pubsub", "service", profile): | 143 for entity in self.host.memory.getServerServiceEntities("pubsub", "service", profile=profile): |
144 _disco = yield client.disco.requestInfo(entity) | 144 _disco = yield client.disco.requestInfo(entity) |
145 #if set([NS_PUBSUB_ITEM_ACCESS, NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features): | 145 #if set([NS_PUBSUB_ITEM_ACCESS, NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features): |
146 if set([NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features): | 146 if set([NS_PUBSUB_AUTO_CREATE, NS_PUBSUB_CREATOR_JID_CHECK]).issubset(_disco.features): |
147 info(_("item-access powered pubsub service found: [%s]") % entity.full()) | 147 info(_("item-access powered pubsub service found: [%s]") % entity.full()) |
148 client.item_access_pubsub = entity | 148 client.item_access_pubsub = entity |