From e4911e93919e733e1a3a0c1db4c6a32b87fef04a Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 22 Jun 2012 21:50:43 -0700 Subject: Add meta plugin for XEP-0302 for the 2012 compliance suite. There are still a few remaining items in the RFCs to add support for, but the current plugin support matches the advanced client profile. --- sleekxmpp/plugins/xep_0302.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sleekxmpp/plugins/xep_0302.py (limited to 'sleekxmpp/plugins/xep_0302.py') diff --git a/sleekxmpp/plugins/xep_0302.py b/sleekxmpp/plugins/xep_0302.py new file mode 100644 index 00000000..83ab9a35 --- /dev/null +++ b/sleekxmpp/plugins/xep_0302.py @@ -0,0 +1,18 @@ +""" + SleekXMPP: The Sleek XMPP Library + Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout + This file is part of SleekXMPP. + + See the file LICENSE for copying permission. +""" + +from sleekxmpp.plugins import BasePlugin + + +class XEP_0302(BasePlugin): + + name = 'xep_0302' + description = 'XEP-0302: XMPP Compliance Suites 2012' + dependencies = set(['xep_0030', 'xep_0115', 'xep_0054', + 'xep_0163', 'xep_0045', 'xep_0085', + 'xep_0184', 'xep_0198']) -- cgit v1.2.3 From c2c7cc032b38d8a7a293467a8c2ff7380cbc756f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 22 Jun 2012 21:58:50 -0700 Subject: Fix plugin registration for single file plugins. --- sleekxmpp/plugins/xep_0302.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0302.py') diff --git a/sleekxmpp/plugins/xep_0302.py b/sleekxmpp/plugins/xep_0302.py index 83ab9a35..dee60f91 100644 --- a/sleekxmpp/plugins/xep_0302.py +++ b/sleekxmpp/plugins/xep_0302.py @@ -6,7 +6,7 @@ See the file LICENSE for copying permission. """ -from sleekxmpp.plugins import BasePlugin +from sleekxmpp.plugins import BasePlugin, register_plugin class XEP_0302(BasePlugin): @@ -16,3 +16,6 @@ class XEP_0302(BasePlugin): dependencies = set(['xep_0030', 'xep_0115', 'xep_0054', 'xep_0163', 'xep_0045', 'xep_0085', 'xep_0184', 'xep_0198']) + + +register_plugin(XEP_0302) -- cgit v1.2.3