summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-09-23 00:51:23 +0000
committerNathan Fritz <nathan@andyet.net>2010-09-23 00:51:23 +0000
commitc258d2f19d63ab0945dad6d2faf8493d456c708c (patch)
treefc85ff31e61901ae3e3eef26b0b7db2f1ecc168d /sleekxmpp/plugins/xep_0004.py
parentd576e32f7aa28332848cdd6e39893266eded64fd (diff)
downloadslixmpp-c258d2f19d63ab0945dad6d2faf8493d456c708c.tar.gz
slixmpp-c258d2f19d63ab0945dad6d2faf8493d456c708c.tar.bz2
slixmpp-c258d2f19d63ab0945dad6d2faf8493d456c708c.tar.xz
slixmpp-c258d2f19d63ab0945dad6d2faf8493d456c708c.zip
added room events for specific rooms, added buildForm to xep_0004 plugin
Diffstat (limited to 'sleekxmpp/plugins/xep_0004.py')
-rw-r--r--sleekxmpp/plugins/xep_0004.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0004.py b/sleekxmpp/plugins/xep_0004.py
index a4cb8e9f..e8dba74c 100644
--- a/sleekxmpp/plugins/xep_0004.py
+++ b/sleekxmpp/plugins/xep_0004.py
@@ -54,7 +54,7 @@ class Form(ElementBase):
field['options'] = options
return field
- def getXML(self):
+ def getXML(self, type='submit'):
logging.warning("Form.getXML() is deprecated API compatibility with plugins/old_0004.py")
return self.xml
@@ -387,3 +387,6 @@ class xep_0004(base.base_plugin):
def handle_form(self, message):
self.xmpp.event("message_xform", message)
+
+ def buildForm(self, xml):
+ return Form(xml=xml)