summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004/__init__.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-11 20:56:46 -0700
committerLance Stout <lancestout@gmail.com>2012-03-12 19:32:19 -0700
commitbe363e0b46681125a54e2d96f70c0c259216fee1 (patch)
tree9b63ff37dc1c24d5d2232216abdf83fd45463cdf /sleekxmpp/plugins/xep_0004/__init__.py
parenta104cd6dae75b4785b3bdc58c944a34a32308b3e (diff)
downloadslixmpp-be363e0b46681125a54e2d96f70c0c259216fee1.tar.gz
slixmpp-be363e0b46681125a54e2d96f70c0c259216fee1.tar.bz2
slixmpp-be363e0b46681125a54e2d96f70c0c259216fee1.tar.xz
slixmpp-be363e0b46681125a54e2d96f70c0c259216fee1.zip
Move XEP-0004 to new system.
Diffstat (limited to 'sleekxmpp/plugins/xep_0004/__init__.py')
-rw-r--r--sleekxmpp/plugins/xep_0004/__init__.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0004/__init__.py b/sleekxmpp/plugins/xep_0004/__init__.py
index aad4e15f..2cd18ec8 100644
--- a/sleekxmpp/plugins/xep_0004/__init__.py
+++ b/sleekxmpp/plugins/xep_0004/__init__.py
@@ -6,6 +6,17 @@
See the file LICENSE for copying permission.
"""
+from sleekxmpp.plugins.base import register_plugin
+
from sleekxmpp.plugins.xep_0004.stanza import Form
from sleekxmpp.plugins.xep_0004.stanza import FormField, FieldOption
-from sleekxmpp.plugins.xep_0004.dataforms import xep_0004
+from sleekxmpp.plugins.xep_0004.dataforms import XEP_0004
+
+
+register_plugin(XEP_0004)
+
+
+# Retain some backwards compatibility
+xep_0004 = XEP_0004
+xep_0004.makeForm = xep_0004.make_form
+xep_0004.buildForm = xep_0004.build_form