From b11e1ee92d4c81fc3943c376477aa8be2a8aa0e6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 22 Jun 2012 21:26:25 -0700 Subject: [PATCH] Add meta plugin for XEP-0270, 2010 compliance suite. Registering this plugin will load the plugins required for advanced client compliance status. --- sleekxmpp/plugins/__init__.py | 1 + sleekxmpp/plugins/xep_0270.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 sleekxmpp/plugins/xep_0270.py diff --git a/sleekxmpp/plugins/__init__.py b/sleekxmpp/plugins/__init__.py index 8464f0cb..5aa48a47 100644 --- a/sleekxmpp/plugins/__init__.py +++ b/sleekxmpp/plugins/__init__.py @@ -58,4 +58,5 @@ __all__ = [ 'xep_0249', # Direct MUC Invitations 'xep_0256', # Last Activity in Presence 'xep_0258', # Security Labels in XMPP + 'xep_0270', # XMPP Compliance Suites 2010 ] diff --git a/sleekxmpp/plugins/xep_0270.py b/sleekxmpp/plugins/xep_0270.py new file mode 100644 index 00000000..41ccd73b --- /dev/null +++ b/sleekxmpp/plugins/xep_0270.py @@ -0,0 +1,17 @@ +""" + 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_0270(BasePlugin): + + name = 'xep_0270' + description = 'XEP-0270: XMPP Compliance Suites 2010' + dependencies = set(['xep_0030', 'xep_0115', 'xep_0054', + 'xep_0163', 'xep_0045', 'xep_0085'])