9bdb297fe2
basic 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
fa7f72d0af
Fixed 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
c538ffae79
digest-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
5d87a54913
Merge branch 'hacks' of github.com:tomstrummer/SleekXMPP into hacks
Thom Nichols
2010-06-29 16:48:15 -04:00
15ac3e9fba
race 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
e8d37b409c
make the scheduler a daemon thread to prevent hanging when the main thread exits.
Tom Nichols
2010-06-28 11:04:18 -04:00
898f96f265
print the traceback if we can't load a plugin for some reason
Tom Nichols
2010-06-28 11:03:46 -04:00
7f8179d91e
Refactored 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
37ada49802
Fixed indentation to please tab nanny during unit tests.
Lance Stout
2010-06-27 17:39:16 -04:00
5c76d969f7
Added a new SleekTest class that provides useful methods for test cases.
Lance Stout
2010-06-27 17:33:43 -04:00
059cc9ccc4
Fixed several errors in xep_0033 plugin.
Lance Stout
2010-06-27 17:32:16 -04:00
47f1fb1690
context 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
66cf0c2021
context 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
3c939313d2
Modified basexmpp.event() to pass a copy of the event data to each handler.
Lance Stout
2010-06-06 23:19:07 -04:00
9962f1a664
Added a __copy__ method to both ElementBase and StanzaBase.
Lance Stout
2010-06-06 23:12:54 -04:00
e7c37c4ec5
connect 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
1aa34cb0fc
Merge remote branch 'tom/hacks'
Brian Beggs
2010-06-04 12:52:52 -04:00
253de8518c
Modified xmlstream.py to pass a clean stanza object to each stream handler.
Lance Stout
2010-06-03 22:42:11 -04:00
919c8c5633
tweaked connectTCP call slightly to reduce possibility of 'connecting' state limbo
Thom Nichols
2010-06-03 15:21:26 -04:00
f54501a346
added function execution on transition, and more unit tests.
Thom Nichols
2010-06-03 14:12:06 -04:00
d20cd6b3e6
added function execution on transition, and more unit tests.
Thom Nichols
2010-06-03 13:51:11 -04:00
3f96226e29
Added additional logging when a plugin fails to import correctly.
Brian Beggs
2010-06-03 10:02:55 -04:00
71d72f431f
Merge remote branch 'tom/hacks'
Brian Beggs
2010-06-03 09:54:48 -04:00
da6e1e47dc
whups, somehow I lost the 'connecting' lock in connect()
Thom Nichols
2010-06-03 08:09:09 -04:00
2f0f18a8c6
added function to retrieve the current state
Thom Nichols
2010-06-03 08:07:56 -04:00
1c32668e18
fixed quiesce algorithm; state transition if connect fails; note about use_tls instance variable.
Thom Nichols
2010-06-03 07:47:27 -04:00
a38735cb2a
added very, very, very basic atom stanza
Nathan Fritz
2010-06-02 15:54:44 -07:00
e700a54d11
Return 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
6469cdb4ca
Merge branch 'develop' of git://github.com/fritzy/SleekXMPP into develop
Lance Stout
2010-06-02 15:57:18 -04:00
77bff9cce7
Merge branch 'hacks' of git@github.com:tomstrummer/SleekXMPP into hacks
Tom Nichols
2010-06-02 15:45:51 -04:00
85a2715c7d
hack fix for session before bind
Nathan Fritz
2010-06-02 12:44:54 +08:00
b03e6168a8
if binding and session are advertised in the same go, do session first
Nathan Fritz
2010-06-02 12:40:52 +08:00
2a43f59a58
added try/catch block to plugin loading
Brian Beggs
2010-06-02 20:45:42 +08:00
184f7cb8a4
moddified 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
e1aa4d0b93
Added .pydevproject to the .gitignore
Brian Beggs
2010-06-02 19:34:43 +08:00
db4989c66d
Merge remote branch 'tom/hacks'
Brian Beggs
2010-06-02 12:49:54 -04:00
7930ed22f2
overhauled 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
b0066f3ef4
added try/catch block to plugin loading
Brian Beggs
2010-06-02 08:45:42 -04:00
c0457cf5d0
moddified 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
59b8406573
Added .pydevproject to the .gitignore
Brian Beggs
2010-06-02 07:34:43 -04:00
686943a2ec
Merge remote branch 'tom/hacks'
Brian Beggs
2010-06-02 07:32:33 -04:00
18e27d65ce
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
Nathan Fritz
2010-06-01 21:45:15 -07:00
0c39567f20
hack fix for session before bind
Nathan Fritz
2010-06-01 21:44:54 -07:00
f5491c901f
if binding and session are advertised in the same go, do session first
Nathan Fritz
2010-06-01 21:40:52 -07:00
e18793152f
Touched up the style of creating an Iq stanza.
Lance stout
2010-05-28 22:45:48 +08:00
e388680269
Added 'resource-constraint' to the list of error conditions.
Lance stout
2010-05-28 22:26:20 +08:00
bee42e4a2f
Added 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
8e3227ae5e
Updated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly.
Lance Stout
2010-05-26 21:34:01 +08:00
257bcadd96
control-c fixes
Nathan Fritz
2010-05-29 10:19:28 +08:00
3e5cdc8664
added pubsubjobs test
Nathan Fritz
2010-05-27 19:59:41 +08:00
194e6bcb51
added pubsub state stanzas and scheduled events
Nathan Fritz
2010-05-27 19:58:57 +08:00
2e7024419a
adding scheduler
Nathan Fritz
2010-05-27 09:32:28 +08:00
5235313aab
added muc room to readme
Nathan Fritz
2010-05-27 02:46:56 +08:00
a2719b0bb0
plugins now are checked for post_init having ran when process() is called
Nathan Fritz
2010-05-27 01:51:51 +08:00
71ad715caa
Changed example.py to register first Xep_0030.
Hernan E Grecco
2010-05-26 06:28:08 +08:00
d452085049
Fixed 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
8b3b8aca9e
updated README, index fix for component
Nathan Fritz
2010-05-25 10:33:24 +08:00
e00dea7c0c
Added a flag to registerPlugin to control calling the plugin's post_init method.
Lance Stout
2010-05-23 01:30:49 +08:00
520bf72e11
Modified the return values for several methods so that they can be chained.
Lance Stout
2010-05-22 22:40:30 +08:00
040f426f1a
Added the error attribute 'code' to the Error object interface.
Lance Stout
2010-05-22 22:39:35 +08:00
226b0e4297
added plugin indexing to components
Nathan Fritz
2010-05-25 05:27:13 +08:00
0b2cd176b1
added test_events and testing new del_event_handler
Nathan Fritz
2010-05-21 04:09:04 +08:00
56b5cbe5b1
Added del_event_handler to remove handler functions for a given event.
Lance Stout
2010-05-20 23:17:22 +08:00
aa916c9ac8
included jobs plugin
Nathan Fritz
2010-05-31 13:57:39 -07:00
332eea3b3b
Make sure that the node is alway set in disco responses.
Lance stout
2010-05-31 13:35:15 -04:00
4f864a07f5
Touched up the style of creating an Iq stanza.
Lance stout
2010-05-28 22:45:48 +08:00
938066bd50
Added 'resource-constraint' to the list of error conditions.
Lance stout
2010-05-28 22:26:20 +08:00
9fee87c258
Added 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