diff src/plugins/plugin_xep_0277.py @ 310:53adec87d1d7

plugin group blog: group blog subscription
author Goffi <goffi@goffi.org>
date Mon, 11 Apr 2011 12:47:35 +0200
parents f1a3db8ee04a
children 0aa6ca6cdbdd
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Sat Apr 09 13:17:31 2011 +0200
+++ b/src/plugins/plugin_xep_0277.py	Mon Apr 11 12:47:35 2011 +0200
@@ -33,9 +33,9 @@
 from time import time
 
 NS_MICROBLOG = 'urn:xmpp:microblog:0'
-NS_ACCESS_MODEL = 'pubsub#access_model'
-NS_PERSIST_ITEMS = 'pubsub#persist_items'
-NS_MAX_ITEMS = 'pubsub#max_items'
+OPT_ACCESS_MODEL = 'pubsub#access_model'
+OPT_PERSIST_ITEMS = 'pubsub#persist_items'
+OPT_MAX_ITEMS = 'pubsub#max_items'
 
 PLUGIN_INFO = {
 "name": "Microblogging over XMPP Plugin",
@@ -159,7 +159,7 @@
         @param profile_key: profile key"""
 
         _jid, xmlstream = self.host.getJidNStream(profile_key)
-        _options = {NS_ACCESS_MODEL:access, NS_PERSIST_ITEMS:1, NS_MAX_ITEMS:-1}
+        _options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1}
         def cb(result):
             #Node is created with right permission
             debug(_("Microblog node has now access %s") % access)