Mercurial > libervia-backend
changeset 343:6fe6ae70904a
plugin xep 0277: added OPT_DELIVER_PAYLOADS OPT_SEND_ITEM_SUBSCRIBE to microblog options when changing access
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 May 2011 20:21:45 +0200 |
parents | c413be4893b5 |
children | f19771d2e63b |
files | src/plugins/plugin_xep_0277.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py Sat May 28 20:19:52 2011 +0200 +++ b/src/plugins/plugin_xep_0277.py Sat May 28 20:21:45 2011 +0200 @@ -36,6 +36,8 @@ OPT_ACCESS_MODEL = 'pubsub#access_model' OPT_PERSIST_ITEMS = 'pubsub#persist_items' OPT_MAX_ITEMS = 'pubsub#max_items' +OPT_DELIVER_PAYLOADS = 'pubsub#deliver_payloads' +OPT_SEND_ITEM_SUBSCRIBE = 'pubsub#send_item_subscribe' PLUGIN_INFO = { "name": "Microblogging over XMPP Plugin", @@ -166,7 +168,8 @@ if not _jid: error(_("Can't find profile's jid")) return - _options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1} + _options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1, OPT_DELIVER_PAYLOADS:1, OPT_SEND_ITEM_SUBSCRIBE: 1} + def cb(result): #Node is created with right permission debug(_("Microblog node has now access %s") % access)