summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-08-30 23:10:13 -0700
committerNathan Fritz <fritzy@netflint.net>2011-08-30 23:10:13 -0700
commit7fb9d6871407380496e3beb193d4b7c269fcf035 (patch)
treeb7f64f60efef9ad742cd8188fe64e9b2ae7d1ca3 /sleekxmpp/plugins/xep_0060
parentb70565720fe7d83fdb5de880607a48a37c126d89 (diff)
downloadslixmpp-7fb9d6871407380496e3beb193d4b7c269fcf035.tar.gz
slixmpp-7fb9d6871407380496e3beb193d4b7c269fcf035.tar.bz2
slixmpp-7fb9d6871407380496e3beb193d4b7c269fcf035.tar.xz
slixmpp-7fb9d6871407380496e3beb193d4b7c269fcf035.zip
fixed form accessors in pubsub stanzas
Diffstat (limited to 'sleekxmpp/plugins/xep_0060')
-rw-r--r--sleekxmpp/plugins/xep_0060/stanza/pubsub.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
index d2da8ec9..ed3e57d4 100644
--- a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
@@ -221,9 +221,7 @@ class Options(ElementBase):
def getOptions(self):
config = self.xml.find('{jabber:x:data}x')
- form = xep_0004.Form()
- if config is not None:
- form.fromXML(config)
+ form = xep_0004.Form(xml=config)
return form
def setOptions(self, value):
@@ -254,9 +252,7 @@ class PublishOptions(ElementBase):
def get_publish_options(self):
config = self.xml.find('{jabber:x:data}x')
- form = xep_0004.Form()
- if config is not None:
- form.fromXML(config)
+ form = xep_0004.Form(xml=config)
return form
def set_publish_options(self, value):