From 2500a0649ba10c0109a1ed021a051284c104391f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 31 Aug 2011 10:43:33 -0700 Subject: Fix requesting pubsub node configuration, and add tests. - doesn't have a type attribute in the XEP - isn't used anymore for requesting default configuration --- sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sleekxmpp/plugins/xep_0060/stanza') diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py index 201dc909..55dd59d1 100644 --- a/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py +++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub_owner.py @@ -22,18 +22,13 @@ class DefaultConfig(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'default' plugin_attrib = 'default' - interfaces = set(('node', 'type', 'config')) + interfaces = set(('node', 'config')) plugin_attrib_map = {} plugin_tag_map = {} def __init__(self, *args, **kwargs): ElementBase.__init__(self, *args, **kwargs) - def getType(self): - t = self._getAttr('type') - if not t: t = 'leaf' - return t - def getConfig(self): return self['form'] @@ -71,7 +66,7 @@ class OwnerConfigure(Configure): interfaces = set(('node', 'config')) plugin_attrib_map = {} plugin_tag_map = {} - + def getConfig(self): return self['form'] -- cgit v1.2.3