From cd2d25cf874c5931b5c5a843c09875625bb9a84c Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 20 Sep 2013 11:50:51 -0700 Subject: Chmod +x examples, and add shebang lines --- examples/pubsub_client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 examples/pubsub_client.py (limited to 'examples/pubsub_client.py') diff --git a/examples/pubsub_client.py b/examples/pubsub_client.py old mode 100644 new mode 100755 index 2fa419fb..9a65553b --- a/examples/pubsub_client.py +++ b/examples/pubsub_client.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import sys import logging import getpass @@ -20,7 +23,7 @@ else: class PubsubClient(sleekxmpp.ClientXMPP): - def __init__(self, jid, password, server, + def __init__(self, jid, password, server, node=None, action='list', data=''): super(PubsubClient, self).__init__(jid, password) @@ -28,7 +31,7 @@ class PubsubClient(sleekxmpp.ClientXMPP): self.register_plugin('xep_0059') self.register_plugin('xep_0060') - self.actions = ['nodes', 'create', 'delete', + self.actions = ['nodes', 'create', 'delete', 'publish', 'get', 'retract', 'purge', 'subscribe', 'unsubscribe'] -- cgit v1.2.3