summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-13 21:26:47 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-05-13 21:26:47 +0200
commitd146ce9fb6aec1eae0a1d6671945eb6fa03fabef (patch)
tree74f037be8b8b344bff441045d6278595170395a3
parentcb59d60034b220fa4b23435954d1ffd4b9e7931f (diff)
downloadslixmpp-d146ce9fb6aec1eae0a1d6671945eb6fa03fabef.tar.gz
slixmpp-d146ce9fb6aec1eae0a1d6671945eb6fa03fabef.tar.bz2
slixmpp-d146ce9fb6aec1eae0a1d6671945eb6fa03fabef.tar.xz
slixmpp-d146ce9fb6aec1eae0a1d6671945eb6fa03fabef.zip
examples: Display only the form, and not the entire stanza.
-rwxr-xr-xexamples/pubsub_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py
index c072bee1..9a1d4bb6 100755
--- a/examples/pubsub_client.py
+++ b/examples/pubsub_client.py
@@ -68,7 +68,7 @@ class PubsubClient(slixmpp.ClientXMPP):
def get_configure(self):
try:
configuration_form = yield from self['xep_0060'].get_node_config(self.pubsub_server, self.node)
- logging.info('Configure form received from node %s: %s', self.node, configuration_form)
+ logging.info('Configure form received from node %s: %s', self.node, configuration_form['pubsub_owner']['configure']['form'])
except XMPPError as error:
logging.error('Could not retrieve configure form from node %s: %s', self.node, error.format())