diff options
author | Lance Stout <lancestout@gmail.com> | 2011-09-01 14:03:11 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-09-01 14:03:11 -0700 |
commit | 39ec1cff1987405213a026b1311f09e891f39fd6 (patch) | |
tree | 9715e48d674de8678190a22383b21f6dda965871 /sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py | |
parent | 24c5f8d374b78ff5efca967953155b46a38949e6 (diff) | |
download | slixmpp-39ec1cff1987405213a026b1311f09e891f39fd6.tar.gz slixmpp-39ec1cff1987405213a026b1311f09e891f39fd6.tar.bz2 slixmpp-39ec1cff1987405213a026b1311f09e891f39fd6.tar.xz slixmpp-39ec1cff1987405213a026b1311f09e891f39fd6.zip |
Some more minor cleanup.
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py index 2234214f..4a35db9d 100644 --- a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py +++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py @@ -10,7 +10,8 @@ from sleekxmpp import Iq from sleekxmpp.xmlstream import register_stanza_plugin, ElementBase, ET, JID from sleekxmpp.plugins.xep_0004 import Form from sleekxmpp.plugins.xep_0060.stanza.base import OptionalSetting -from sleekxmpp.plugins.xep_0060.stanza.pubsub import Affiliations, Affiliation, Configure, Subscriptions +from sleekxmpp.plugins.xep_0060.stanza.pubsub import Affiliations, Affiliation +from sleekxmpp.plugins.xep_0060.stanza.pubsub import Configure, Subscriptions class PubsubOwner(ElementBase): @@ -23,7 +24,7 @@ class PubsubOwner(ElementBase): class DefaultConfig(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'default' - plugin_attrib = 'default' + plugin_attrib = name interfaces = set(('node', 'config')) def __init__(self, *args, **kwargs): @@ -55,7 +56,7 @@ class OwnerAffiliation(Affiliation): class OwnerConfigure(Configure): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'configure' - plugin_attrib = 'configure' + plugin_attrib = name interfaces = set(('node',)) @@ -67,15 +68,15 @@ class OwnerDefault(OwnerConfigure): class OwnerDelete(ElementBase, OptionalSetting): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'delete' - plugin_attrib = 'delete' + plugin_attrib = name interfaces = set(('node',)) class OwnerPurge(ElementBase, OptionalSetting): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'purge' - interfaces = set(('node',)) plugin_attrib = name + interfaces = set(('node',)) class OwnerRedirect(ElementBase): |