Compare commits

..

5 Commits

Author SHA1 Message Date
Lance Stout
3b2c865a58 Bump version to 1.1.2 2012-06-06 12:26:15 -07:00
Lance Stout
db0e683d01 Don't request registration forms unless the register event is handled.
Some servers end the stream if registration can not be completed
in-band, which means always requesting the form can prevent regular
login.
2012-06-06 12:23:40 -07:00
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
5 changed files with 13 additions and 5 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.2 <http://github.com/fritzy/SleekXMPP/zipball/1.1.2>`_
**Develop Releases**
- `Latest Develop Version <http://github.com/fritzy/SleekXMPP/zipball/develop>`_

View File

@@ -50,7 +50,7 @@ class XEP_0077(BasePlugin):
# We have already logged in with an account
return False
if self.create_account:
if self.create_account and self.xmpp.event_handled('register'):
form = self.get_registration()
self.xmpp.event('register', form, direct=True)
return True

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.2'
__version_info__ = (1, 1, 2, '', 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()