summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/stanzabase.py
AgeCommit message (Collapse)Author
2021-07-03stanzabase: typesmathieui
2021-04-18stanza: rework the .append() and __eq__ methodsmathieui
This was very much broken on plugin iterables and other reasons.
2021-04-09Fix #3441: Do not assign ID to inbound stanzasmathieui
2021-02-05global: rewrite copyright notice to use commentsmathieui
2021-02-04stanzabase: make _get_plugin part of the public APImathieui
it is the only way I know of checking if an element is present in a stanza without creating it or checking the XML manually.
2020-12-06Remove OrderedDict usageEmmanuel Gil Peyrot
We now support only Python 3.7+, this means we can rely on dict being ordered by order of insertion, and thus no need to use OrderedDict from collections.
2020-12-02ElementBase: serialize JID objects as strings automaticallymathieui
This is a shortcut to avoid defining custom methods each time a substanza containing a JID exists in a plugin. Same thing with attributes, there is no place where we do not want this.
2020-10-01StanzaBase.send: remove inexisting param in docstring -- thanks elghinnMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-04Fix TypeError: 'NoneType' object is not an iteratorjheling
When deleting sub-elements in a stanza.
2020-03-28cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.Karthikeyan Singaravelan
2019-07-16xmlstream/stanzabase: remove unused interfaces and types attributesMaxime “pep” Buquet
These are already on each stanza, and were not applicable to all stanzas anyway. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-01-09Split ns only once in fix_ns().Emmanuel Gil Peyrot
2018-10-03stanzabase: Remove python2 legacy.Emmanuel Gil Peyrot
2016-10-22sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-22sed -i 's/set((\(.*\)))$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-22sed -i 's/set((\(.*\),))$/{\1}/g' **/*.pyEmmanuel Gil Peyrot
2016-10-02Add a fallback if the lang we want is not availablemathieui
Previously, trying to get a text node with a lang which is different from the one we specified would return nothing, which means e.g. a message would be ignored because its body is of lang 'fr' when we setup slixmpp to prefer 'en'. We want to return something when there is an available, valid content in a different language.
2016-09-21ElementBase: Remove support for TitleCase methods.Emmanuel Gil Peyrot
This gains about 1/8th of the time spent in __getitem__.
2016-09-20ElementBase: Remove deprecated find() and findall() methods.discoEmmanuel Gil Peyrot
2016-09-20ElementBase: Remove attrib interface.Emmanuel Gil Peyrot
2016-09-20ElementBase: Remove subitem interface.Emmanuel Gil Peyrot
2016-08-17ElementBase: micro-optimise __getitem__, hands down the most often called ↵Emmanuel Gil Peyrot
function This makes it go down from 8.767s to 7.960s in a random benchmark. Remove unnecessary assignations, don’t create an OrderedDict from a dict to then convert it to a dict again, only obtain the get_method2 name if get_method wasn’t present. get_method2 (the title-case one) takes about 1/8th of the total time spent in this function, we should eliminate it as soon as possible.
2015-10-02Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-mergemathieui
Conflicts: README.rst examples/IoT_TestDevice.py examples/disco_browser.py setup.py sleekxmpp/jid.py sleekxmpp/plugins/google/auth/stanza.py sleekxmpp/plugins/google/gmail/notifications.py sleekxmpp/plugins/google/nosave/stanza.py sleekxmpp/plugins/google/settings/settings.py sleekxmpp/thirdparty/__init__.py sleekxmpp/thirdparty/socks.py sleekxmpp/thirdparty/statemachine.py sleekxmpp/util/__init__.py sleekxmpp/xmlstream/xmlstream.py slixmpp/basexmpp.py slixmpp/plugins/xep_0004/stanza/form.py slixmpp/plugins/xep_0009/rpc.py slixmpp/plugins/xep_0050/adhoc.py slixmpp/plugins/xep_0065/proxy.py slixmpp/plugins/xep_0084/stanza.py slixmpp/plugins/xep_0202/time.py slixmpp/plugins/xep_0323/sensordata.py slixmpp/plugins/xep_0325/control.py slixmpp/plugins/xep_0325/stanza/control.py slixmpp/roster/single.py slixmpp/stanza/atom.py slixmpp/stanza/rootstanza.py slixmpp/test/slixtest.py slixmpp/util/sasl/mechanisms.py slixmpp/version.py slixmpp/xmlstream/stanzabase.py tests/test_stanza_xep_0323.py tests/test_stanza_xep_0325.py tests/test_stream_xep_0323.py tests/test_stream_xep_0325.py
2015-02-24Update the documentation and examplesmathieui
- update most of the examples with slixmpp - change the help channels pointed out in the doc - add a page listing differences from slixmpp and how to use asyncio nicely with slixmpp - fix some in-code rst documentation
2015-02-12Fix the uses of stanza.reply()mathieui
This is relying on the stanzas being copied for each handler. We no longer do that for performance reasons, so instead of editing the copy in-place, stanza.reply() now returns a new stanza.
2014-10-11Something something get_stanza_valuesFlorent Le Coz
Fix something that was broken by Link Mauve
2014-09-28Remove all deprecated alias in the core of slixmpp, and wherever they were used.Emmanuel Gil Peyrot
2014-09-01Always use OrderedDict from collections, and remove its implementation in ↵Emmanuel Gil Peyrot
slixmpp.thirdparty.
2014-07-30Fix the iq.send() function, and a bunch of places where it is calledFlorent Le Coz
This is a big-and-dirty commit with a bunch of cleanup, maybe breaking a few things, and not fixing all iq.send() calls yet.
2014-07-21Clean a new bunch of stufFlorent Le Coz
2014-07-17Rename to slixmppFlorent Le Coz