summaryrefslogtreecommitdiff
path: root/sleekxmpp
AgeCommit message (Collapse)Author
2012-01-17Fix roster key issue for non-JID keys.Lance Stout
2012-01-17Hash JIDs based on full JID string.Lance Stout
This makes JID objects equivalent to strings in dictionaries, etc. >>> j = JID('foo@example.com') >>> s = 'foo@example.com' >>> d = {j: 'yay'} >>> d[j] 'yay' >>> d[s] 'yay' >>> d[s] = 'yay!!' >>> d[j] 'yay!!'
2012-01-17Pre-parse StanzaPath paths to speed up matching.Lance Stout
The parsing and namespace cleaning isn't terribly expensive, but it does add up. It was adding an extra 5sec when processing 100,000 basic message stanzas.
2012-01-17Remove stream feature handlers on session_start.Lance Stout
Based on profiling, using around 35 stream handlers quarters the number of basic message stanzas that can be processed in a second, in comparison to only using the bare minimum of four handlers. To help, we can drop handlers for stream features once the session has started. So that we can re-enable these handlers when a stream must restart, the 'stream_start' event has been added which fires whenever a stream header is received. The 'stream_start' event is a more generic replacement for the existing start_stream_handler() method.
2012-01-16Use jid.bare as a key instead of a JID instance.Rodolfo Henrique Carvalho
2012-01-15Tidy up and update the plugin __init__ file.Lance Stout
2012-01-14Fix xep_0030 reference warning.Lance Stout
2012-01-14Don't serialize XML unless we need to.Lance Stout
2012-01-12Don't dump exception logs for XML stream parsing errors.Lance Stout
The exceptions are handled, so we don't need to clutter the output logs.
2012-01-12Update Roster stanza to use RosterItem substanzas.Lance Stout
get_roster() now returns the Iq result stanza instead of True (stanzas also evaluate to True).
2012-01-11update_caps() can now do presence broadcasting.Lance Stout
As part of adding this feature: - fixed bug in update_caps() not assigning verstrings - fixed xep_0004 typo - can now use None as a roster key which will map to boundjid.bare - fixed using JID objects in disco node handlers - fixed failing test related to get_roster Several of these bugs I've fixed before, so I either didn't push them earlier, or I clobbered something when merging. *shrug*
2012-01-10Make the roster easier to inspect.Lance Stout
The __repr__ version now looks like a regular dictionary.
2012-01-10Make get_roster(block=False) work properly.Lance Stout
Fixes issue #136
2012-01-07Sync with Suelta.Lance Stout
2012-01-06Add support for MSN with X-MESSENGER-OAUTH2 SASL support.Lance Stout
NOTE: This requires already having the access token. It does NOT perform any OAuth requests.
2012-01-06Fix client_roster when the bare JID changes after binding.Lance Stout
Adds session_bind event.
2012-01-05Merge branch 'develop-1.1' into developLance Stout
2012-01-03Update version and README for 1.0 release.sleek-1.01.0Lance Stout
2012-01-02Merge pull request #132 from rhcarvalho/masterLance Stout
Fix a typo in several files.
2012-01-02Fix a typo in several files.Rodolfo Carvalho
This fixes several instances of "intial" for "initial".
2011-12-31Fix handing caps in Python3, allow update_caps() call before process()Lance Stout
2011-12-31Fix a few holes in caps.Lance Stout
Protip: Don't test using a custom disco handler that always returns the same feature set :p
2011-12-31Merge branch 'develop' into develop-1.1Lance Stout
2011-12-31Add docs on using Iq stanzas.Lance Stout
2011-12-30Merge pull request #130 from rhcarvalho/masterLance Stout
Some small fixes
2011-12-30Enable caps stream feature.Lance Stout
2011-12-30Add XEP-0115 plugin.Lance Stout
Finally
2011-12-30Add option to disable condensing and converting form values.Lance Stout
XEP-0115 needs to use the raw XML character data.
2011-12-30Add option for disabling identity and feature deduplication.Lance Stout
XEP-0115 requires detecting duplicates, so we can't always silently ignore them.
2011-12-30Add 'supports' and 'has_identity' node handlers.Lance Stout
2011-12-30Automatically use local disco based on the JID.Lance Stout
2011-12-30Be more lenient on required arguments to disco node handlers.Lance Stout
2011-12-30Make the disco logs nicer.Lance Stout
2011-12-30Fix docstring of a method of Message stanzas.Rodolfo Carvalho
2011-12-28Add set_info disco handler.Lance Stout
2011-12-28Fix caching for clients.Lance Stout
2011-12-28Add caching support to xep_0030.Lance Stout
New plugin configuration options: use_cache - Enable caching disco info results. Defaults to True wrap_results - Always return disco results in an Iq stanza. Defaults to False Node handler changes: Handlers now take four arguments: jid, node, ifrom, data Most older style handlers will still work, depending on if they raise a TypeError for incorrect number of arguments. Handlers that used *args may not work. New get_info options: cached - Passing cached=True to get_info() will attempt to load results from the cache. If nothing is found, a query will be sent as normal. If set to False, the cache will be skipped, even if it contains results. New method: supports() - Given a JID/node pair and a feature, return True if the feature is supported, False if not, and None if there was a timeout. By default, the search will use the cache.
2011-12-28Ensure that stanza plugins work as expected if the XML is appended.Lance Stout
2011-12-27Merge branch 'develop' into develop-1.1Lance Stout
2011-12-27Merge branch 'develop' of github.com:fritzy/SleekXMPP into developLance Stout
2011-12-27Disconnect when a SyntaxError is found.Lance Stout
This should resolve issue #102
2011-12-20XEP-0009: Updated tests to work in python 3Correl Roush
2011-12-20Add comma to fix pubsub error conditions.Lance Stout
Fixes issue #127
2011-12-20XEP-0009: Updated RPC value conversion codeCorrel Roush
Updated the XML-RPC value conversion to correctly apply namespaces, and fixed an error uncovered by the tests in the XML -> Python conversion of dateTime values.
2011-12-16Fixes Issue #123: Corrected boolean xml to python conversionCorrel Roush
2011-12-15Fixed Issue 93: ACL.check jid parameter should be a string valueCorrel Roush
2011-12-15Allow XEP-0082 to return datetime objects without having to format and reparse.Lance Stout
2011-12-14Log received data AFTER filtering.Lance Stout
This allows applications to filter out sensitive information, such as passwords, so that it won't appear in the logs. It does mean that the debug logs will not show the actual received data, and there will be no indication of tampering, unless the filter author explicitly logs and notes that a change was made.
2011-12-13Merge branch 'develop' into develop-1.1Lance Stout
2011-12-13Use OrderedDicts instead of regular dictionaries when returning values from ↵Lance Stout
forms.