9bdb297fe2basic checking for digest-md5 to make sure the necessary components are there to complete auth. If not a failed_auth event is dispatched and the socket disconnected.
Brian Beggs
2010-06-30 14:44:57 -04:00
fa7f72d0afFixed a defect where handlers for SASL authentication were being added multiple times. This caused issues when trying to reconnect. A handler for the auth mech would get added each reconnection attempt, causing digest-md5, success and failure to be called x times for each x number of retries.
Brian Beggs
2010-06-30 14:30:18 -04:00
c538ffae79digest-md5 auth now works, had to remove from __future__ import unicode_literals to get it working correctly. Also some improvments for the prioroity message sending.
Brian Beggs
2010-06-30 13:54:53 -04:00
5d87a54913Merge branch 'hacks' of github.com:tomstrummer/SleekXMPP into hacks
Thom Nichols
2010-06-29 16:48:15 -04:00
15ac3e9fbarace condition where we were transitioning to 'disconnected' and immediately reconnecting in another thread before the socket.close call occurred. Now we're locking the state machine until the disconnect routine completes.
Tom Nichols
2010-06-28 11:06:26 -04:00
e8d37b409cmake the scheduler a daemon thread to prevent hanging when the main thread exits.
Tom Nichols
2010-06-28 11:04:18 -04:00
898f96f265print the traceback if we can't load a plugin for some reason
Tom Nichols
2010-06-28 11:03:46 -04:00
7f8179d91eRefactored unit tests for XEP-0030, XEP-0033, and XEP-0085 to use the new SleekTest class.
Lance Stout
2010-06-27 17:40:06 -04:00
37ada49802Fixed indentation to please tab nanny during unit tests.
Lance Stout
2010-06-27 17:39:16 -04:00
5c76d969f7Added a new SleekTest class that provides useful methods for test cases.
Lance Stout
2010-06-27 17:33:43 -04:00
059cc9ccc4Fixed several errors in xep_0033 plugin.
Lance Stout
2010-06-27 17:32:16 -04:00
309c9e74ebFixed error in setState() method.
Lance Stout
2010-06-27 16:34:48 -04:00
47f1fb1690context manager now returns a boolean 'result' as the context variable to indicate whether the transition timed out or if you are actually locked when entering the context body
Thom Nichols
2010-06-07 13:43:37 -04:00
66cf0c2021context manager is working but there's a fatal flaw: inside the body of the 'with' statement, there's no way to tell whether or not the transition occurred or timed out.
Thom Nichols
2010-06-07 13:16:02 -04:00
3c939313d2Modified basexmpp.event() to pass a copy of the event data to each handler.
Lance Stout
2010-06-06 23:19:07 -04:00
9962f1a664Added a __copy__ method to both ElementBase and StanzaBase.
Lance Stout
2010-06-06 23:12:54 -04:00
e7c37c4ec5connect uses the new function-on-state-transition so when the connect method returns you are guaranteed to be either in the 'connected' or 'disconnected' state. Could remove the 'connecting' state except uses it.
Thom Nichols
2010-06-04 17:00:51 -04:00
1aa34cb0fcMerge remote branch 'tom/hacks'
Brian Beggs
2010-06-04 12:52:52 -04:00
253de8518cModified xmlstream.py to pass a clean stanza object to each stream handler.
Lance Stout
2010-06-03 22:42:11 -04:00
919c8c5633tweaked connectTCP call slightly to reduce possibility of 'connecting' state limbo
Thom Nichols
2010-06-03 15:21:26 -04:00
f54501a346added function execution on transition, and more unit tests.
Thom Nichols
2010-06-03 14:12:06 -04:00
d20cd6b3e6added function execution on transition, and more unit tests.
Thom Nichols
2010-06-03 13:51:11 -04:00
3f96226e29Added additional logging when a plugin fails to import correctly.
Brian Beggs
2010-06-03 10:02:55 -04:00
71d72f431fMerge remote branch 'tom/hacks'
Brian Beggs
2010-06-03 09:54:48 -04:00
da6e1e47dcwhups, somehow I lost the 'connecting' lock in connect()
Thom Nichols
2010-06-03 08:09:09 -04:00
2f0f18a8c6added function to retrieve the current state
Thom Nichols
2010-06-03 08:07:56 -04:00
1c32668e18fixed quiesce algorithm; state transition if connect fails; note about use_tls instance variable.
Thom Nichols
2010-06-03 07:47:27 -04:00
a38735cb2aadded very, very, very basic atom stanza
Nathan Fritz
2010-06-02 15:54:44 -07:00
e700a54d11Return result of iq.send() for disco requests. Events are still triggered, but now the caller can determine if there was a timeout.
Lance Stout
2010-06-02 15:59:10 -04:00
6469cdb4caMerge branch 'develop' of git://github.com/fritzy/SleekXMPP into develop
Lance Stout
2010-06-02 15:57:18 -04:00
77bff9cce7Merge branch 'hacks' of git@github.com:tomstrummer/SleekXMPP into hacks
Tom Nichols
2010-06-02 15:45:51 -04:00
1f3cfb98f1Merge branch 'master' into hacks
Thom Nichols
2010-06-02 14:18:46 -04:00
8227affd7fremoved unnecessary flags and arguments from disconnect method
Thom Nichols
2010-06-02 14:17:36 -04:00
3a2f989c5eMerge branch 'master' into hacks
Thom Nichols
2010-06-02 14:15:07 -04:00
85a2715c7dhack fix for session before bind
Nathan Fritz
2010-06-02 12:44:54 +08:00
b03e6168a8if binding and session are advertised in the same go, do session first
Nathan Fritz
2010-06-02 12:40:52 +08:00
2a43f59a58added try/catch block to plugin loading
Brian Beggs
2010-06-02 20:45:42 +08:00
184f7cb8a4moddified plugin loading so plugins located outside of the plugins directory in sleek may be loaded. Added optional argument pluginModule that is a string that represents the module the desired plugin should be loaded from.
Brian Beggs
2010-06-02 20:28:49 +08:00
e1aa4d0b93Added .pydevproject to the .gitignore
Brian Beggs
2010-06-02 19:34:43 +08:00
db4989c66dMerge remote branch 'tom/hacks'
Brian Beggs
2010-06-02 12:49:54 -04:00
7930ed22f2overhauled state machine. Now allows for atomic transitions. Next step: atomic function calls (and maybe 'handlers') on state transition.
Thom Nichols
2010-06-02 12:39:54 -04:00
b0066f3ef4added try/catch block to plugin loading
Brian Beggs
2010-06-02 08:45:42 -04:00
c0457cf5d0moddified plugin loading so plugins located outside of the plugins directory in sleek may be loaded. Added optional argument pluginModule that is a string that represents the module the desired plugin should be loaded from.
Brian Beggs
2010-06-02 08:28:49 -04:00
59b8406573Added .pydevproject to the .gitignore
Brian Beggs
2010-06-02 07:34:43 -04:00
686943a2ecMerge remote branch 'tom/hacks'
Brian Beggs
2010-06-02 07:32:33 -04:00
18e27d65ceMerge branch 'develop' of github.com:fritzy/SleekXMPP into develop
Nathan Fritz
2010-06-01 21:45:15 -07:00
0c39567f20hack fix for session before bind
Nathan Fritz
2010-06-01 21:44:54 -07:00
f5491c901fif binding and session are advertised in the same go, do session first
Nathan Fritz
2010-06-01 21:40:52 -07:00
060b4c3938Merge branch 'hacks' of github.com:tomstrummer/SleekXMPP
Thom Nichols
2010-06-01 22:55:01 -04:00
49f5767aeamerged changes from fritzy
Thom Nichols
2010-06-01 22:54:30 -04:00
4eb210bff5fixed some major reconnection errors
Thom Nichols
2010-06-01 22:51:49 -04:00
1780ca900amerged a lot of fritzy's changes
Thom Nichols
2010-06-01 22:40:37 -04:00
f5cae85af5Make sure that the id parameter used in xmpp.makeIq is converted to a string.
Lance stout
2010-06-01 10:52:37 -04:00
01e8040a07Added additional parameter to xep_0030's getInfo and getItems methods.
Lance stout
2010-06-01 10:51:03 -04:00
e6c2fde283included jobs plugin
Nathan Fritz
2010-06-01 04:57:39 +08:00
ecf902bf16Scheduler waits too longer, and pubsubstate registration was backwards
Nathan Fritz
2010-05-31 18:36:25 +08:00
e18793152fTouched up the style of creating an Iq stanza.
Lance stout
2010-05-28 22:45:48 +08:00
e388680269Added 'resource-constraint' to the list of error conditions.
Lance stout
2010-05-28 22:26:20 +08:00
bee42e4a2fAdded unit tests for the new XEP-0030 stanza objects. All pass. (cherry picked from commit e1b814f27bf160f20bb30c315ca30769d217482d)
Lance Stout
2010-05-26 21:40:12 +08:00
8e3227ae5eUpdated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly.
Lance Stout
2010-05-26 21:34:01 +08:00
257bcadd96control-c fixes
Nathan Fritz
2010-05-29 10:19:28 +08:00
3e5cdc8664added pubsubjobs test
Nathan Fritz
2010-05-27 19:59:41 +08:00
194e6bcb51added pubsub state stanzas and scheduled events
Nathan Fritz
2010-05-27 19:58:57 +08:00
2e7024419aadding scheduler
Nathan Fritz
2010-05-27 09:32:28 +08:00
5235313aabadded muc room to readme
Nathan Fritz
2010-05-27 02:46:56 +08:00
a2719b0bb0plugins now are checked for post_init having ran when process() is called
Nathan Fritz
2010-05-27 01:51:51 +08:00
71ad715caaChanged example.py to register first Xep_0030.
Hernan E Grecco
2010-05-26 06:28:08 +08:00
d452085049Fixed error registering a plugin. To add a feature to another plugin, it should look into xmpp.plugin dict
Hernan E Grecco
2010-05-26 06:10:34 +08:00
8b3b8aca9eupdated README, index fix for component
Nathan Fritz
2010-05-25 10:33:24 +08:00
e00dea7c0cAdded a flag to registerPlugin to control calling the plugin's post_init method.
Lance Stout
2010-05-23 01:30:49 +08:00
520bf72e11Modified the return values for several methods so that they can be chained.
Lance Stout
2010-05-22 22:40:30 +08:00
040f426f1aAdded the error attribute 'code' to the Error object interface.
Lance Stout
2010-05-22 22:39:35 +08:00
226b0e4297added plugin indexing to components
Nathan Fritz
2010-05-25 05:27:13 +08:00
0b2cd176b1added test_events and testing new del_event_handler
Nathan Fritz
2010-05-21 04:09:04 +08:00
56b5cbe5b1Added del_event_handler to remove handler functions for a given event.
Lance Stout
2010-05-20 23:17:22 +08:00
aa916c9ac8included jobs plugin
Nathan Fritz
2010-05-31 13:57:39 -07:00
332eea3b3bMake sure that the node is alway set in disco responses.
Lance stout
2010-05-31 13:35:15 -04:00
109af1b1b6Merge branch 'xep_0085' into develop
Lance stout
2010-05-31 13:31:11 -04:00
629f6e76a9Added implementation and tests for XEP-0085 - Chat State Notifications.
Lance stout
2010-05-31 13:24:14 -04:00
82a3918aa4Scheduler waits too longer, and pubsubstate registration was backwards
Nathan Fritz
2010-05-31 03:36:25 -07:00
4f864a07f5Touched up the style of creating an Iq stanza.
Lance stout
2010-05-28 22:45:48 +08:00
938066bd50Added 'resource-constraint' to the list of error conditions.
Lance stout
2010-05-28 22:26:20 +08:00
9fee87c258Added unit tests for the new XEP-0030 stanza objects. All pass. (cherry picked from commit e1b814f27bf160f20bb30c315ca30769d217482d)
Lance Stout
2010-05-26 21:40:12 +08:00