Lance Stout 
							
						 
					 
					
						
						
							
						
						393d702e77 
					 
					
						
						
							
							Merge branch 'develop' into exceptions  
						
						 
						
						
						
						
					 
					
						2011-06-15 10:56:49 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						4efd41f1ba 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-06-15 10:56:33 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						58aa944a5e 
					 
					
						
						
							
							Fix another roster issue.  
						
						 
						
						... 
						
						
						
						Caused by same issue of a JID being in the roster, but with an
incomplete entry. 
						
						
					 
					
						2011-06-15 10:55:36 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						a3597d6deb 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						... 
						
						
						
						Conflicts:
	sleekxmpp/basexmpp.py 
						
						
					 
					
						2011-06-14 14:24:25 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8fada4d015 
					 
					
						
						
							
							Merge branch 'develop' into exceptions  
						
						 
						
						
						
						
					 
					
						2011-06-14 14:18:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						5d11ab269d 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-06-14 14:10:52 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						dd41a85efc 
					 
					
						
						
							
							Fix issue with components and roster.  
						
						 
						
						... 
						
						
						
						If the roster contained a JID, but not any resource presence data, then
an error would occur when accessing self.roster[jid]['presence']. 
						
						
					 
					
						2011-06-14 14:03:54 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						6d59f55fd4 
					 
					
						
						
							
							Merge branch 'develop' into exceptions  
						
						 
						
						
						
						
					 
					
						2011-06-10 15:15:01 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						7a60e4b458 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-06-10 15:14:51 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						937dce8e65 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-06-10 15:14:37 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nathan Fritz 
							
						 
					 
					
						
						
							
						
						e2d18170b0 
					 
					
						
						
							
							old xep_0050 plugin is now loadable  
						
						 
						
						
						
						
					 
					
						2011-06-10 04:14:01 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						e219c0f976 
					 
					
						
						
							
							Added session_end event and some docs.  
						
						 
						
						... 
						
						
						
						For now, session_end is the same as disconnected, but once support is
added later for stream management, the two events will become distinct.
Plugins should add handlers for session_end for cleaning any session
state. 
						
						
					 
					
						2011-06-08 10:24:25 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						5c1562f36b 
					 
					
						
						
							
							Merge branch 'develop' into exceptions  
						
						 
						
						
						
						
					 
					
						2011-06-08 10:02:38 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						823c13707d 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-06-08 10:02:22 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8eb59072b4 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-06-08 10:01:52 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						4266ee0fa4 
					 
					
						
						
							
							Fix XEP-0050 issue with Unicode string type checking.  
						
						 
						
						
						
						
					 
					
						2011-06-08 10:00:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						3a62908703 
					 
					
						
						
							
							Send component handshake immediately.  
						
						 
						
						
						
						
					 
					
						2011-06-08 10:00:01 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						20d053807d 
					 
					
						
						
							
							IqTimeout now references the original sent stanza.  
						
						 
						
						... 
						
						
						
						A little extra bit of docs for IqError. 
						
						
					 
					
						2011-06-01 15:28:33 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8aa4396e44 
					 
					
						
						
							
							Begin experimental use of exceptions.  
						
						 
						
						... 
						
						
						
						Provides IqTimeout and IqError which are raised when an Iq response
does not arrive in time, or it arrives with type='error'. 
						
						
					 
					
						2011-06-01 15:17:22 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8f9100c762 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-06-01 15:17:13 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						788a5b73f9 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-06-01 15:17:04 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						1469323350 
					 
					
						
						
							
							Cache stanza if sending fails.  
						
						 
						
						... 
						
						
						
						The stanza will be sent first once the send queue is reactivated
after session start.
Stanzas sent by skipping the queue will not be cached. 
						
						
					 
					
						2011-06-01 15:10:44 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						83a73ac9b7 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						... 
						
						
						
						Conflicts:
	sleekxmpp/clientxmpp.py 
						
						
					 
					
						2011-05-31 11:05:54 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						5ed27bf5f6 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-05-31 10:59:14 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						a81162edd2 
					 
					
						
						
							
							Apply connection backoff to reconnect attempts.  
						
						 
						
						... 
						
						
						
						Backoff was only being done for the initial connection attempt
before. Now any reconnection will start with a minimum 1 sec
delay which will approximately double between attempts. 
						
						
					 
					
						2011-05-31 10:55:15 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8080b4cae2 
					 
					
						
						
							
							Cleanup logging and exception handling.  
						
						 
						
						... 
						
						
						
						The syntax and attribute errors raised during a disconnect/reconnect
attempt are now caught and produce nicer log messages. 
						
						
					 
					
						2011-05-31 10:23:05 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						1735c194cd 
					 
					
						
						
							
							Don't use the send queue for stream initialization.  
						
						 
						
						... 
						
						
						
						Use the parameter now=True to skip the queue when
sending Iq stanzas, or using xmpp.send(). 
						
						
					 
					
						2011-05-27 17:00:57 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						6997b2fbf8 
					 
					
						
						
							
							Fix typo for SSL certificate use.  
						
						 
						
						
						
						
					 
					
						2011-05-27 16:39:45 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						b81ab97900 
					 
					
						
						
							
							Add exponential backoff to connection attempts.  
						
						 
						
						... 
						
						
						
						Delay will approximately double between attempts (random variation).
See issue #67 . 
						
						
					 
					
						2011-05-27 14:42:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						384e1a92b7 
					 
					
						
						
							
							Added support for testind disconnect errors.  
						
						 
						
						
						
						
					 
					
						2011-05-27 11:01:30 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						9851a2a057 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-05-20 21:41:44 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						c49a8e9114 
					 
					
						
						
							
							Save progress  
						
						 
						
						
						
						
					 
					
						2011-05-20 17:42:40 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						6b274a2543 
					 
					
						
						
							
							Fix double roster entry issue with Unicode.  
						
						 
						
						... 
						
						
						
						JIDs with Unicode values were being encoded by the JID class
instead of leaving them as just Unicode strings.
It may still be a good idea to use
    from __future__ import unicode_literals
pretty much everywhere though.
Fixes issue #88 . 
						
						
					 
					
						2011-05-20 16:48:13 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						a269be485f 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						
						
						
					 
					
						2011-05-20 13:46:46 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						d3bd9cd31d 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-05-20 13:46:36 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						6a07e7cbe3 
					 
					
						
						
							
							Handle callback return value case.  
						
						 
						
						
						
						
					 
					
						2011-05-20 13:46:12 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						e2de82ac8d 
					 
					
						
						
							
							Merge branch 'develop' into stream_features  
						
						 
						
						... 
						
						
						
						Conflicts:
	sleekxmpp/clientxmpp.py 
						
						
					 
					
						2011-05-20 13:26:21 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						e3b14bc5a9 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						... 
						
						
						
						Conflicts:
	sleekxmpp/clientxmpp.py
	tests/test_stream_roster.py 
						
						
					 
					
						2011-05-20 13:23:48 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						9f1648328f 
					 
					
						
						
							
							Resolve timeout errors for get_roster.  
						
						 
						
						... 
						
						
						
						See issue #89 
Using get_roster will now return the same types of values as
Iq.send. If a timeout occurs, then the event 'roster_timeout'
will be fired. A successful call to get_roster will also
raise the 'roster_received' event.
To ensure that the get_roster call was successful, here
is a pattern to follow:
    def __init__(self, ...):
        ...
        self.add_event_handler('session_start', self.session_start)
        self.add_event_handler('roster_timeout', self.roster_timeout)
        self.add_event_handler('roster_received', self.roster_received)
    def session_start(self, e):
        self.send_presence()
        self.get_roster()
    def roster_timeout(self, e):
        # Optionally increase the timeout period
        self.get_roster(timeout=self.response_timeout * 2)
    def roster_received(self, iq):
        # Do stuff, roster has been initialized.
        ... 
						
						
					 
					
						2011-05-20 12:56:00 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						8e46aa7054 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-04-26 16:33:32 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						5399fdd3a9 
					 
					
						
						
							
							Add support for testing that no stanzas are sent in tests.  
						
						 
						
						... 
						
						
						
						Use: self.send(None) 
						
						
					 
					
						2011-04-26 16:32:58 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nathan Fritz 
							
						 
					 
					
						
						
							
						
						8a22597180 
					 
					
						
						
							
							added has_jid to roster  
						
						 
						
						
						
						
					 
					
						2011-04-15 17:43:12 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nathan Fritz 
							
						 
					 
					
						
						
							
						
						016aac69f6 
					 
					
						
						
							
							Pubsub/Unsubscribe was not getting registered  
						
						 
						
						
						
						
					 
					
						2011-04-14 17:35:20 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nathan Fritz 
							
						 
					 
					
						
						
							
						
						e919906c8c 
					 
					
						
						
							
							Pubsub/Unsubscribe was not getting registered  
						
						 
						
						
						
						
					 
					
						2011-04-14 17:34:33 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nathan Fritz 
							
						 
					 
					
						
						
							
						
						46dc6eac88 
					 
					
						
						
							
							remove roster item state responsibility from clients  
						
						 
						
						
						
						
					 
					
						2011-04-14 16:27:27 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						b9bf30e095 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-04-11 14:23:39 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						1d891858b6 
					 
					
						
						
							
							Mark scheduler thread as a daemon.  
						
						 
						
						
						
						
					 
					
						2011-04-11 14:22:32 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						6b05938573 
					 
					
						
						
							
							Merge branch 'develop' into roster  
						
						 
						
						
						
						
					 
					
						2011-04-08 16:41:45 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						87ccd804ff 
					 
					
						
						
							
							Add version info.  
						
						 
						
						... 
						
						
						
						May now use sleekxmpp.__version__ and sleekxmpp.__version_info__. 
						
						
					 
					
						2011-04-08 16:39:39 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Lance Stout 
							
						 
					 
					
						
						
							
						
						d7ba7cc72a 
					 
					
						
						
							
							Use underscore method name.  
						
						 
						
						... 
						
						
						
						Since camelcase names are aliased to the underscored name at startup,
if the underscored version is replaced later, the camelCase name does
not reflect the change. 
						
						
					 
					
						2011-04-08 16:14:22 -04:00