summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0030/static.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-12-13 15:58:59 -0500
committerLance Stout <lancestout@gmail.com>2010-12-13 15:58:59 -0500
commit2f4bdfee1bb4efd6bc390a4c97d27d40d88b8d3a (patch)
treee5615a50747881d045b71d133b86434e77664f30 /sleekxmpp/plugins/xep_0030/static.py
parentf4451fe6b72f7cfb9680ead7a608d5ca1bc7e753 (diff)
downloadslixmpp-2f4bdfee1bb4efd6bc390a4c97d27d40d88b8d3a.tar.gz
slixmpp-2f4bdfee1bb4efd6bc390a4c97d27d40d88b8d3a.tar.bz2
slixmpp-2f4bdfee1bb4efd6bc390a4c97d27d40d88b8d3a.tar.xz
slixmpp-2f4bdfee1bb4efd6bc390a4c97d27d40d88b8d3a.zip
Update some docs.
Diffstat (limited to 'sleekxmpp/plugins/xep_0030/static.py')
-rw-r--r--sleekxmpp/plugins/xep_0030/static.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0030/static.py b/sleekxmpp/plugins/xep_0030/static.py
index f3693228..e2d03315 100644
--- a/sleekxmpp/plugins/xep_0030/static.py
+++ b/sleekxmpp/plugins/xep_0030/static.py
@@ -35,6 +35,11 @@ class StaticDisco(object):
def __init__(self, xmpp):
"""
+ Create a static disco interface. Sets of disco#info and
+ disco#items are maintained for every given JID and node
+ combination. These stanzas are used to store disco
+ information in memory without any additional processing.
+
Arguments:
xmpp -- The main SleekXMPP object.
"""
@@ -101,7 +106,6 @@ class StaticDisco(object):
data.get('name', None),
data.get('lang', None))
-
def add_feature(self, jid, node, data=None):
self.add_node(jid, node)
self.nodes[(jid, node)]['info'].add_feature(data.get('feature', ''))
@@ -124,4 +128,3 @@ class StaticDisco(object):
def del_item(self, jid, node, data=None):
if (jid, node) in self.nodes:
self.nodes[(jid, node)]['items'].del_item(**data)
-