Compare commits

..

3 Commits

Author SHA1 Message Date
Lance Stout
e29a9e0394 Bump version for 1.1.1 minor release. 2012-06-04 11:56:53 -07:00
Lance Stout
edf65f4f52 Include the default, unnamed group in self.client_roster.groups() 2012-06-04 11:54:25 -07:00
Lance Stout
98677fd602 Don't add cert expiration timer if no certs are being used. 2012-06-04 11:53:58 -07:00
4 changed files with 12 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ The latest source code for SleekXMPP may be found on `Github
``develop`` branch.
**Latest Release**
- `1.1 <http://github.com/fritzy/SleekXMPP/zipball/1.1>`_
- `1.1.1 <http://github.com/fritzy/SleekXMPP/zipball/1.1.1>`_
**Develop Releases**
- `Latest Develop Version <http://github.com/fritzy/SleekXMPP/zipball/develop>`_

View File

@@ -119,7 +119,12 @@ class RosterNode(object):
"""Return a dictionary mapping group names to JIDs."""
result = {}
for jid in self._jids:
for group in self._jids[jid]['groups']:
groups = self._jids[jid]['groups']
if not groups:
if '' not in result:
result[''] = []
result[''].append(jid)
for group in groups:
if group not in result:
result[group] = []
result[group].append(jid)

View File

@@ -9,5 +9,5 @@
# We don't want to have to import the entire library
# just to get the version info for setup.py
__version__ = '1.1.0'
__version_info__ = (1, 1, 0, '', 0)
__version__ = '1.1.1'
__version_info__ = (1, 1, 1, '', 0)

View File

@@ -816,6 +816,9 @@ class XMLStream(object):
def _cert_expiration(self, event):
"""Schedule an event for when the TLS certificate expires."""
if not self.use_tls and not self.use_ssl:
return
def restart():
log.warn("The server certificate has expired. Restarting.")
self.reconnect()