summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-22 21:50:43 -0700
committerLance Stout <lancestout@gmail.com>2012-06-22 21:52:39 -0700
commite4911e93919e733e1a3a0c1db4c6a32b87fef04a (patch)
treef2f1e339bd7be0ad0fac4eca68dad728981b7db9
parentb11e1ee92d4c81fc3943c376477aa8be2a8aa0e6 (diff)
downloadslixmpp-e4911e93919e733e1a3a0c1db4c6a32b87fef04a.tar.gz
slixmpp-e4911e93919e733e1a3a0c1db4c6a32b87fef04a.tar.bz2
slixmpp-e4911e93919e733e1a3a0c1db4c6a32b87fef04a.tar.xz
slixmpp-e4911e93919e733e1a3a0c1db4c6a32b87fef04a.zip
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.
-rw-r--r--sleekxmpp/plugins/__init__.py1
-rw-r--r--sleekxmpp/plugins/xep_0302.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/__init__.py b/sleekxmpp/plugins/__init__.py
index 5aa48a47..1466a274 100644
--- a/sleekxmpp/plugins/__init__.py
+++ b/sleekxmpp/plugins/__init__.py
@@ -59,4 +59,5 @@ __all__ = [
'xep_0256', # Last Activity in Presence
'xep_0258', # Security Labels in XMPP
'xep_0270', # XMPP Compliance Suites 2010
+ 'xep_0302', # XMPP Compliance Suites 2012
]
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'])