diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-05-24 19:33:24 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-05-24 19:33:24 -0700 |
commit | 7ebc0065167189186ddf53e81a47dab887c87a72 (patch) | |
tree | 6820eacfe4b796f16112ab36a9b5d03c21bc4596 | |
parent | 3920ee394183d95aa6f5b4ee3c8843c2d34ad4cb (diff) | |
download | slixmpp-7ebc0065167189186ddf53e81a47dab887c87a72.tar.gz slixmpp-7ebc0065167189186ddf53e81a47dab887c87a72.tar.bz2 slixmpp-7ebc0065167189186ddf53e81a47dab887c87a72.tar.xz slixmpp-7ebc0065167189186ddf53e81a47dab887c87a72.zip |
updated README, index fix for component
-rw-r--r-- | README | 8 | ||||
-rwxr-xr-x | sleekxmpp/componentxmpp.py | 4 | ||||
-rw-r--r-- | sleekxmpp/plugins/stanza_pubsub.py | 2 |
3 files changed, 9 insertions, 5 deletions
@@ -1,5 +1,8 @@ -SleekXMPP is an XMPP library written for Python 3.x (with 2.6 compatibility). +SleekXMPP is an XMPP library written for Python 3.1+ (with 2.6 compatibility). +Hosted at http://wiki.github.com/fritzy/SleekXMPP/ + Featured in examples in XMPP: The Definitive Guide by Kevin Smith, Remko Tronçon, and Peter Saint-Andre +If you're coming here from The Definitive Guide, please read http://wiki.github.com/fritzy/SleekXMPP/xmpp-the-definitive-guide SleekXMPP has several design goals/philosophies: - Low number of dependencies. @@ -31,7 +34,8 @@ Since 0.2, here's the Changelog: Credits ---------------- Main Author: Nathan Fritz fritz@netflint.net -XEP-0045 original implementation: Kevin Smith +Contributors: Kevin Smith & Lance Stout Patches: Remko Tronçon Feel free to add fritzy@netflint.net to your roster for direct support and comments. +Join sleekxmpp-discussion@googlegroups.com / http://groups.google.com/group/sleekxmpp-discussion for discussion. diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index 89953687..de125814 100755 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.5 +#!/usr/bin/python2.6 """ SleekXMPP: The Sleek XMPP Library @@ -54,7 +54,7 @@ class ComponentXMPP(basexmpp, XMLStream): self.secret = secret self.registerHandler(Callback('Handshake', MatchXPath('{jabber:component:accept}handshake'), self._handleHandshake)) - def __getitem__(self, key): + def __getitem__(self, key): if key in self.plugin: return self.plugin[key] else: diff --git a/sleekxmpp/plugins/stanza_pubsub.py b/sleekxmpp/plugins/stanza_pubsub.py index 4187d49c..1dd73d99 100644 --- a/sleekxmpp/plugins/stanza_pubsub.py +++ b/sleekxmpp/plugins/stanza_pubsub.py @@ -281,7 +281,7 @@ class DefaultConfig(ElementBase): def getType(self): t = self._getAttr('type') - if not t: t == 'leaf' + if not t: t = 'leaf' return t stanzaPlugin(PubsubOwner, DefaultConfig) |