def load_commands(): """ Register the core plugins for the system. :return: None """ register_plugin(configure_client_details) register_plugin(search_venues)
def load_components(): """ Register the core plugins for the system. :return: None """ register_plugin(knowledge_provider) register_plugin(foursquare_lookup) register_plugin(knowledge_maintainer) register_plugin(search_handler)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Erik Reuterborg Larsson, Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0184.stanza import Request, Received from sleekxmpp.plugins.xep_0184.receipt import XEP_0184 register_plugin(XEP_0184) # Retain some backwards compatibility xep_0184 = XEP_0184
from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0122.stanza import FormValidation from sleekxmpp.plugins.xep_0122.data_validation import XEP_0122 register_plugin(XEP_0122) # Retain some backwards compatibility xep_0122 = XEP_0122
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz, Erik Reuterborg Larsson This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0059.stanza import Set from sleekxmpp.plugins.xep_0059.rsm import ResultIterator, XEP_0059 register_plugin(XEP_0059) # Retain some backwards compatibility xep_0059 = XEP_0059
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0202 import stanza from sleekxmpp.plugins.xep_0202.stanza import EntityTime from sleekxmpp.plugins.xep_0202.time import XEP_0202 register_plugin(XEP_0202) # Retain some backwards compatibility xep_0202 = XEP_0202
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0049.stanza import PrivateXML from sleekxmpp.plugins.xep_0049.private_storage import XEP_0049 register_plugin(XEP_0049)
def load_components(): register_plugin(update_service)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2016 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0352.stanza import Active, Inactive, ClientStateIndication from sleekxmpp.plugins.xep_0352.csi import XEP_0352 register_plugin(XEP_0352)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0086.stanza import LegacyError from sleekxmpp.plugins.xep_0086.legacy_error import XEP_0086 register_plugin(XEP_0086) # Retain some backwards compatibility xep_0086 = XEP_0086
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Emmanuel Gil Peyrot <*****@*****.**> This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0231.stanza import BitsOfBinary from sleekxmpp.plugins.xep_0231.bob import XEP_0231 register_plugin(XEP_0231)
from sleekxmpp.plugins.google.settings import GoogleSettings from sleekxmpp.plugins.google.nosave import GoogleNoSave class Google(BasePlugin): """ Google: Custom GTalk Features Also see: <https://developers.google.com/talk/jep_extensions/extensions> """ name = 'google' description = 'Google: Custom GTalk Features' dependencies = set( ['gmail', 'google_settings', 'google_nosave', 'google_auth']) def __getitem__(self, attr): if attr in ('settings', 'nosave', 'auth'): return self.xmpp['google_%s' % attr] elif attr == 'gmail': return self.xmpp['gmail'] else: raise KeyError(attr) register_plugin(Gmail) register_plugin(GoogleAuth) register_plugin(GoogleSettings) register_plugin(GoogleNoSave) register_plugin(Google)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0279 import stanza from sleekxmpp.plugins.xep_0279.stanza import IPCheck from sleekxmpp.plugins.xep_0279.ipcheck import XEP_0279 register_plugin(XEP_0279)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0033 import stanza from sleekxmpp.plugins.xep_0033.stanza import Addresses, Address from sleekxmpp.plugins.xep_0033.addresses import XEP_0033 register_plugin(XEP_0033) # Retain some backwards compatibility xep_0033 = XEP_0033 Addresses.addAddress = Addresses.add_address
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0108 import stanza from sleekxmpp.plugins.xep_0108.stanza import UserActivity from sleekxmpp.plugins.xep_0108.user_activity import XEP_0108 register_plugin(XEP_0108)
from sleekxmpp.plugins.base import register_plugin from . import stanza from .rpc import XEP_0009_timeout from .stanza import MethodTimeout register_plugin(XEP_0009_timeout)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2013 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0079.stanza import ( AMP, Rule, InvalidRules, UnsupportedConditions, UnsupportedActions, FailedRules, FailedRule, AMPFeature, ) from sleekxmpp.plugins.xep_0079.amp import XEP_0079 register_plugin(XEP_0079)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0084 import stanza from sleekxmpp.plugins.xep_0084.stanza import Data, MetaData from sleekxmpp.plugins.xep_0084.avatar import XEP_0084 register_plugin(XEP_0084)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2013 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0152 import stanza from sleekxmpp.plugins.xep_0152.stanza import Reachability from sleekxmpp.plugins.xep_0152.reachability import XEP_0152 register_plugin(XEP_0152)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0235 import stanza from sleekxmpp.plugins.xep_0235.stanza import OAuth from sleekxmpp.plugins.xep_0235.oauth import XEP_0235 register_plugin(XEP_0235)
from sleekxmpp.plugins.base import register_plugin, BasePlugin from iq3.stanza import current_programme, diagnostic_tuner, current_viewing, system_information, get_volume, set_volume, set_message from iq3.current import iq3 register_plugin(iq3)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. 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 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
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.features.feature_starttls.starttls import FeatureSTARTTLS from sleekxmpp.features.feature_starttls.stanza import * register_plugin(FeatureSTARTTLS) # Retain some backwards compatibility feature_starttls = FeatureSTARTTLS
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permissio """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0085.stanza import ChatState from sleekxmpp.plugins.xep_0085.chat_states import XEP_0085 register_plugin(XEP_0085) # Retain some backwards compatibility xep_0085 = XEP_0085
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0054.stanza import VCardTemp from sleekxmpp.plugins.xep_0054.vcard_temp import XEP_0054 register_plugin(XEP_0054)
""" 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 permissio """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0280.stanza import ReceivedCarbon, SentCarbon from sleekxmpp.plugins.xep_0280.stanza import PrivateCarbon from sleekxmpp.plugins.xep_0280.stanza import CarbonEnable, CarbonDisable from sleekxmpp.plugins.xep_0280.carbons import XEP_0280 register_plugin(XEP_0280)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0131 import stanza from sleekxmpp.plugins.xep_0131.stanza import Headers from sleekxmpp.plugins.xep_0131.headers import XEP_0131 register_plugin(XEP_0131)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.features.feature_preapproval.preapproval import FeaturePreApproval from sleekxmpp.features.feature_preapproval.stanza import PreApproval register_plugin(FeaturePreApproval)
# -*- coding: utf-8 -*- # Copyright (c) 2013-2014 Andrew Hampe from sleekxmpp.plugins.base import register_plugin from hawkenapi.sleekxmpp.base import Hawken from hawkenapi.sleekxmpp.party import HawkenParty register_plugin(Hawken) register_plugin(HawkenParty)
""" 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 permissio """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0308.stanza import Replace from sleekxmpp.plugins.xep_0308.correction import XEP_0308 register_plugin(XEP_0308)
from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.docker.stanza import Docker from sleekxmpp.plugins.docker.register import DOCKER register_plugin(DOCKER) # Retain some backwards compatibility docker = DOCKER
method to set the defaults expected by PEP. Arguments: stanza -- The PEP update stanza to publish. node -- The node to publish the item to. If not specified, the stanza's namespace will be used. id -- Optionally specify the ID of the item. options -- A form of publish options. ifrom -- Specify the sender's JID. block -- Specify if the send call will block until a response is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT callback -- Optional reference to a stream handler function. Will be executed when a reply stanza is received. """ if node is None: node = stanza.namespace return self.xmpp['xep_0060'].publish(ifrom, node, payload=stanza.xml, options=options, ifrom=ifrom, block=block, callback=callback, timeout=timeout) register_plugin(XEP_0163)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0199.stanza import Ping from sleekxmpp.plugins.xep_0199.ping import XEP_0199 register_plugin(XEP_0199) # Backwards compatibility for names xep_0199 = XEP_0199 xep_0199.sendPing = xep_0199.send_ping
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0030 import stanza from sleekxmpp.plugins.xep_0030.stanza import DiscoInfo, DiscoItems from sleekxmpp.plugins.xep_0030.static import StaticDisco from sleekxmpp.plugins.xep_0030.disco import XEP_0030 register_plugin(XEP_0030) # Retain some backwards compatibility xep_0030 = XEP_0030 XEP_0030.getInfo = XEP_0030.get_info XEP_0030.getItems = XEP_0030.get_items XEP_0030.make_static = XEP_0030.restore_defaults
parent=self.parent() xml=ET.Element("{%s}displayed"%self.namespace) xml.attrib['id']=value parent.append(xml) def get_cm_displayed(self): parent=self.parent() xml=parent.find("{%s}displayed"%self.namespace) if xml is not None: return xml.attrib.get('id','') return '' def del_cm_displayed(self): self.parent()._del_sub("{%s}displayed"%self.namespace) class XEP_0333(BasePlugin): """ XEP-0333 Chat Markers """ name = 'xep_0333' description = 'XEP-0333: Chat Markers' dependencies = set(['xep_0030']) def plugin_init(self): register_stanza_plugin(Message,Markable) register_stanza_plugin(Message,Displayed) register_stanza_plugin(Message,Received) register_plugin(XEP_0333)
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0107 import stanza from sleekxmpp.plugins.xep_0107.stanza import UserMood from sleekxmpp.plugins.xep_0107.user_mood import XEP_0107 register_plugin(XEP_0107)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2010 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0128.static import StaticExtendedDisco from sleekxmpp.plugins.xep_0128.extended_disco import XEP_0128 register_plugin(XEP_0128) # Retain some backwards compatibility xep_0128 = XEP_0128
Arguments: node -- The node to retrieve content from. id -- Optionally specify the ID of the item. item_ids -- Specify a group of IDs. If id is also specified, it will be included in item_ids. ifrom -- Specify the sender's JID. block -- Specify if the send call will block until a response is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT callback -- Optional reference to a stream handler function. Will be executed when a reply stanza is received. """ if item_ids is None: item_ids = [] if id is not None: item_ids.append(id) return self.xmpp['xep_0060'].get_items(None, node, item_ids=item_ids, ifrom=ifrom, block=block, callback=callback, timeout=timeout) register_plugin(XEP_0223)
class D(BasePlugin): name = 'd' dependencies = set(['c']) class E(BasePlugin): name = 'e' dependencies = set(['a', 'd']) class F(BasePlugin): name = 'f' dependencies = set(['a', 'b']) register_plugin(A) register_plugin(B) register_plugin(C) register_plugin(D) register_plugin(E) register_plugin(F) class TestPlugins(unittest.TestCase): def test_enable(self): """Enable a single plugin.""" p = PluginManager(None) events = []
from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0065.proxy import XEP_0065 register_plugin(XEP_0065)
method to set the defaults expected by PEP. Arguments: node -- The node to retrieve content from. id -- Optionally specify the ID of the item. item_ids -- Specify a group of IDs. If id is also specified, it will be included in item_ids. ifrom -- Specify the sender's JID. block -- Specify if the send call will block until a response is received, or a timeout occurs. Defaults to True. timeout -- The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT callback -- Optional reference to a stream handler function. Will be executed when a reply stanza is received. """ if item_ids is None: item_ids = [] if id is not None: item_ids.append(id) return self.xmpp['xep_0060'].get_items(None, node, item_ids=item_ids, ifrom=ifrom, block=block, callback=callback, timeout=timeout) register_plugin(XEP_0222)
""" 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 permissio """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0013.stanza import Offline from sleekxmpp.plugins.xep_0013.offline import XEP_0013 register_plugin(XEP_0013)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0060.pubsub import XEP_0060 from sleekxmpp.plugins.xep_0060 import stanza register_plugin(XEP_0060) # Retain some backwards compatibility xep_0060 = XEP_0060
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.features.feature_rosterver.rosterver import FeatureRosterVer from sleekxmpp.features.feature_rosterver.stanza import RosterVer register_plugin(FeatureRosterVer) # Retain some backwards compatibility feature_rosterver = FeatureRosterVer
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0016 import stanza from sleekxmpp.plugins.xep_0016.stanza import Privacy from sleekxmpp.plugins.xep_0016.privacy import XEP_0016 register_plugin(XEP_0016)
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins.base import register_plugin from sleekxmpp.plugins.xep_0224 import stanza from sleekxmpp.plugins.xep_0224.stanza import Attention from sleekxmpp.plugins.xep_0224.attention import XEP_0224 register_plugin(XEP_0224) # Retain some backwards compatibility xep_0224 = XEP_0224
""" 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.base import register_plugin from sleekxmpp.plugins.xep_0091 import stanza from sleekxmpp.plugins.xep_0091.stanza import LegacyDelay from sleekxmpp.plugins.xep_0091.legacy_delay import XEP_0091 register_plugin(XEP_0091)