From 5ab77c745270d7d5c016c1dc7ef2a82533a4b16e Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 17 Jul 2014 14:19:04 +0200 Subject: Rename to slixmpp --- slixmpp/plugins/xep_0202/__init__.py | 20 ++++++ slixmpp/plugins/xep_0202/stanza.py | 127 +++++++++++++++++++++++++++++++++++ slixmpp/plugins/xep_0202/time.py | 98 +++++++++++++++++++++++++++ 3 files changed, 245 insertions(+) create mode 100644 slixmpp/plugins/xep_0202/__init__.py create mode 100644 slixmpp/plugins/xep_0202/stanza.py create mode 100644 slixmpp/plugins/xep_0202/time.py (limited to 'slixmpp/plugins/xep_0202') diff --git a/slixmpp/plugins/xep_0202/__init__.py b/slixmpp/plugins/xep_0202/__init__.py new file mode 100644 index 00000000..1197eabc --- /dev/null +++ b/slixmpp/plugins/xep_0202/__init__.py @@ -0,0 +1,20 @@ +""" + Slixmpp: The Slick XMPP Library + Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout + This file is part of Slixmpp. + + See the file LICENSE for copying permission. +""" + +from slixmpp.plugins.base import register_plugin + +from slixmpp.plugins.xep_0202 import stanza +from slixmpp.plugins.xep_0202.stanza import EntityTime +from slixmpp.plugins.xep_0202.time import XEP_0202 + + +register_plugin(XEP_0202) + + +# Retain some backwards compatibility +xep_0202 = XEP_0202 diff --git a/slixmpp/plugins/xep_0202/stanza.py b/slixmpp/plugins/xep_0202/stanza.py new file mode 100644 index 00000000..c855663b --- /dev/null +++ b/slixmpp/plugins/xep_0202/stanza.py @@ -0,0 +1,127 @@ +""" + Slixmpp: The Slick XMPP Library + Copyright (C) 2010 Nathanael C. Fritz + This file is part of Slixmpp. + + See the file LICENSE for copying permission. +""" + +import logging +import datetime as dt + +from slixmpp.xmlstream import ElementBase +from slixmpp.plugins import xep_0082 +from slixmpp.thirdparty import tzutc, tzoffset + + +class EntityTime(ElementBase): + + """ + The