From c258d2f19d63ab0945dad6d2faf8493d456c708c Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 23 Sep 2010 00:51:23 +0000 Subject: added room events for specific rooms, added buildForm to xep_0004 plugin --- sleekxmpp/plugins/xep_0004.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0004.py') 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) -- cgit v1.2.3