diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-23 14:14:21 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-23 14:14:21 -0700 |
commit | 2a8082407656bf78a487afcf20017b10ca6475cc (patch) | |
tree | 989e5c9a6ab2b49281bbf98623a2446898769cf2 /examples/adhoc_provider.py | |
parent | f92f96325ac12160554cdf94d98b6742671d67a1 (diff) | |
download | slixmpp-2a8082407656bf78a487afcf20017b10ca6475cc.tar.gz slixmpp-2a8082407656bf78a487afcf20017b10ca6475cc.tar.bz2 slixmpp-2a8082407656bf78a487afcf20017b10ca6475cc.tar.xz slixmpp-2a8082407656bf78a487afcf20017b10ca6475cc.zip |
Remove extra debugging code that made it into a commit.sleek-1.0-RC11.0-RC1
Diffstat (limited to 'examples/adhoc_provider.py')
-rwxr-xr-x | examples/adhoc_provider.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/examples/adhoc_provider.py b/examples/adhoc_provider.py index 5fa26334..0a7905b8 100755 --- a/examples/adhoc_provider.py +++ b/examples/adhoc_provider.py @@ -85,17 +85,6 @@ class CommandBot(sleekxmpp.ClientXMPP): form.addField(var='greeting', ftype='text-single', label='Your greeting') - form.addField(var='recipient', - ftype='jid-single', - label='Who to greet') - form.addField(var='message', - ftype='text-multi', - label='Your message') - form.addField(var='demobool', - ftype='boolean', - label='Test booleans', - desc='Test default values too', - value=True) session['payload'] = form session['next'] = self._handle_command_complete @@ -137,13 +126,9 @@ class CommandBot(sleekxmpp.ClientXMPP): form = payload greeting = form['values']['greeting'] - recipient = form['values']['recipient'] - message = '\n'.join(form['values']['message']) - if recipient is None: - recipient = session['from'] - self.send_message(mto=recipient, - mbody="%s, %s!\n%s" % (greeting, recipient, message), + self.send_message(mto=session['from'], + mbody="%s, World!" % greeting, mtype='chat') # Having no return statement is the same as unsetting the 'payload' |