summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-08-12 16:32:09 -0700
committerNathan Fritz <fritzy@netflint.net>2011-08-12 16:32:09 -0700
commit0050c5112428939346397a4d2edfeb313c0fd497 (patch)
tree53e0997a217aee78a23678bbaa3fa250f54bd976 /sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py
parent168203c94def5b4f88345e2564ecb0b973e8fc3f (diff)
downloadslixmpp-0050c5112428939346397a4d2edfeb313c0fd497.tar.gz
slixmpp-0050c5112428939346397a4d2edfeb313c0fd497.tar.bz2
slixmpp-0050c5112428939346397a4d2edfeb313c0fd497.tar.xz
slixmpp-0050c5112428939346397a4d2edfeb313c0fd497.zip
updated pubsub plugin to use stanzas
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py')
-rw-r--r--sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py
index a90780cc..a8ced8a9 100644
--- a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py
+++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py
@@ -65,10 +65,19 @@ class OwnerAffiliation(Affiliation):
plugin_tag_map = {}
class OwnerConfigure(Configure):
+ name = 'configure'
+ plugin_attrib = 'configure'
namespace = 'http://jabber.org/protocol/pubsub#owner'
interfaces = set(('node', 'config'))
plugin_attrib_map = {}
plugin_tag_map = {}
+
+ def getConfig(self):
+ return self['form']
+
+ def setConfig(self, value):
+ self['form'].setStanzaValues(value.getStanzaValues())
+ return self
registerStanzaPlugin(PubsubOwner, OwnerConfigure)
@@ -78,12 +87,6 @@ class OwnerDefault(OwnerConfigure):
plugin_attrib_map = {}
plugin_tag_map = {}
- def getConfig(self):
- return self['form']
-
- def setConfig(self, value):
- self['form'].setStanzaValues(value.getStanzaValues())
- return self
registerStanzaPlugin(PubsubOwner, OwnerDefault)
registerStanzaPlugin(OwnerDefault, xep_0004.Form)