Robert Robinson
c2dc44cfd1
Merge branch 'develop' into xep_0050_updates
...
# Conflicts:
# tests/test_stream_xep_0050.py
2015-09-18 13:35:28 -06:00
Robert Robinson
2a127a57a7
Add test case Reported->Data Form Validation
...
Add a test case that will verify that reported fields can contain data form validation data.
2015-09-15 10:09:06 -06:00
Robert Robinson
7059400020
Merge branch 'refactor_forms' into add_xep_0122
2015-09-15 10:07:34 -06:00
Robert Robinson
0b14ef82d4
Add test case for reported and items
...
Previous stanza test cases didn't have test cases for reported and item field types in forms. This fixes that issue.
Modified stanzabase to use an ordered dict so that can guarentee the that 'items' in a form are added after reported. Also updated the set of interfaces that are stored in Form to be a ordered set. Used the order set implementation from: https://code.activestate.com/recipes/576694/
The OrderedSet implementation is licensed under the MIT license and is developed by the same developer of the ordereddict.
2015-09-15 10:05:53 -06:00
Robert Robinson
f2bf6072ec
Add plugin
...
(cherry picked from commit 2296d56)
2015-09-14 17:04:43 -06:00
Robert Robinson
5f9abe2e0e
Working through test case issues.
...
(cherry picked from commit 6b58cef)
2015-09-14 17:04:16 -06:00
Robert Robinson
ea65b672e7
Initial cut at getting the stanzas to work.
...
(cherry picked from commit 8c7df49)
2015-09-14 17:04:08 -06:00
Robert Robinson
93c705fb31
Fix xep_0050 changes after form refactor.
2015-09-14 17:00:53 -06:00
Robert Robinson
0724f623bb
Force forms and fields to use plugin resolution
...
Instead of using the interface/subinterface code that was currently being implemented for the plugin.
(cherry picked from commit 1467ec7)
2015-09-14 16:46:36 -06:00
Robert Robinson
ffb2b6bc04
Update test_stream_xep_0050.py
...
Fix Unit Test for adhoc 50 stream.
2015-09-12 20:08:21 -06:00
Robin Gloster
afc939708f
cleanup semicolons, whitespace and mutable default arguments
2014-08-23 12:47:29 +02:00
Robin Gloster
3dd379cdf1
Revert "cleanup semicolons, whitespace and mutable default arguments"
...
This reverts commit 7265682a4d
.
2014-08-18 15:15:14 +02:00
Robin Gloster
7265682a4d
cleanup semicolons, whitespace and mutable default arguments
2014-08-18 00:52:24 +02:00
Lance Stout
a2423b8499
Get the IoT plugins to pass tests on Py3
2014-02-06 09:54:45 -08:00
Lance Stout
651915f31c
Add test for wrong sender in IQ
2014-02-06 09:13:28 -08:00
Lance Stout
ad7a57103d
ElementTree._escape_cdata isn't reliable across Python versions.
...
It also does not work as desired.
Revert "Merge pull request #254 from barreverte/develop"
This reverts commit 23750357e2
, reversing
changes made to 07284f380f
.
2013-09-12 10:39:10 -07:00
Lance Stout
23750357e2
Merge pull request #254 from barreverte/develop
...
tostring.escape : optimization
2013-09-12 10:21:56 -07:00
Lance Stout
24c474a9ec
Merge branch 'xep_0323_325' of git://github.com/joachimlindborg/SleekXMPP into joachimlindborg-xep_0323_325
...
Conflicts:
sleekxmpp/plugins/__init__.py
2013-09-05 16:26:18 -07:00
Joachim Lindborg
45689fd879
First implementation of the xep_0323 and xep_325 used in IoT systems. Tests are added for stanza and streams
2013-08-30 02:29:52 +02:00
Jean-Philippe Caruana
c02adbb8e1
tostring.escape : optimization
...
use of xml.etree.ElementTree._escape_attrib and xml.etree.ElementTree._escape_cdata
2013-07-30 18:51:23 +02:00
Jean-Philippe Caruana
18dde97c8c
refactor: no import * in tests
2013-07-26 13:02:26 +02:00
Lance Stout
cedc9dd175
Adjust get_roster to always return, even with invalid JIDs
...
Issue #245
2013-06-29 22:33:00 -07:00
Lance Stout
baf9aaf26c
Add test for nodeprep idempotency after explicitly using Unicode 3.2
2013-06-19 08:21:54 -07:00
Joachim Lindborg
b7adaafb3e
First test stanza
2013-05-17 12:18:00 +02:00
Anton Ryzhov
c0d02d9935
Remove roster_received
event
2013-03-28 22:09:33 +04:00
Lance Stout
5a771dbe2f
Prevent race condition in pubsub test.
2013-03-11 16:41:44 -07:00
Lance Stout
82bbe5d1a6
Merge branch 'develop'
2013-02-25 09:53:35 -08:00
Anton Ryzhov
d9906756cf
Don't use internally deprecated methods
2013-02-22 01:48:03 +04:00
Lance Stout
d8c9662302
Resolve most Python3.3 related issues.
...
Tests now run successfully. Occasionally get single error related to
duplicated payload data in pubsub items when copying stanza values.
2013-02-14 01:24:09 -08:00
Lance Stout
23f112602c
Get tests to pass again.
...
Re-add old gmail_notify plugin for now.
2013-01-26 15:15:01 -08:00
Lance Stout
a1716de683
Update tests for XEP-0092
2013-01-20 16:08:01 -08:00
Lance Stout
2229ad8d8e
Relax timing issues in Iq timeout callback test.
2012-10-31 13:41:55 -07:00
Joe Hildebrand
67235c4214
Allow IQ timeouts to be asynchronous, by passing a timeout_callback parameter to send(). An example modification of disco is included. If this approach is approved, I'll go through and update the other plugins.
2012-10-31 13:27:06 -07:00
Lance Stout
12e8bb6ddc
Turns out not all data is UTF-8, so don't try to decode it.
...
Fixes issue #204
2012-10-31 00:16:58 -07:00
Lance Stout
90807dd973
Fix RSM tests
2012-09-25 23:22:49 -07:00
Lance Stout
6c57bb0553
Simplify stringifying XML
2012-09-24 20:59:51 -07:00
Lance Stout
9a08dfc7d4
Add support for using CDATA for escaping.
...
CDATA escaping is disabled by default, but may be enabled by setting:
self.use_cdata = True
Closes issue #114
2012-07-24 03:25:55 -07:00
Lance Stout
352ee2f2fd
Fix JID validation bugs, add lots of tests.
2012-07-24 01:43:20 -07:00
Lance Stout
e4e18a416f
Add validation for JIDs.
2012-07-24 01:43:20 -07:00
Lance Stout
100e504b7f
Resolve xml:lang issue with duplicated elements depending on ordering.
2012-06-22 18:19:17 -07:00
Lance Stout
36c11ad9de
Ordering fixes for Python3.3
2012-06-19 18:19:44 -07:00
Lance Stout
181aea737d
Add initial support for xml:lang for streams and stanza plugins.
...
Remaining items are suitable default actions for language supporting
interfaces.
2012-06-18 22:00:33 -07:00
Lance Stout
9e86a7b357
Tidy up and add tests for multi_attrib plugins.
2012-05-05 14:01:13 -07:00
Lance Stout
a9acff5294
Collapse initial payload to a single stanza instead of a list if only one stanza is found.
2012-04-30 11:16:10 -07:00
Lance Stout
ad5b61de50
Add full support for initial payloads with adhoc commands, plus test.
2012-04-30 11:07:54 -07:00
Lance Stout
7734aee7ad
Prevent roster_update from firing twice after retrieving the roster.
2012-04-07 17:22:29 -04:00
Lance Stout
f1fde07eb9
Add tests for bool_interfaces.
2012-03-27 21:16:53 -07:00
Lance Stout
859822ff05
Fix unicode issues in test cases for Py3+ introduced by issue #150 .
2012-03-19 14:24:45 -07:00
Lance Stout
3acc7d0914
Merge pull request #150 from correl/rpc_value_fixes
...
Updated XEP-0009 to handle unicode strings
2012-03-19 14:06:36 -07:00
Lance Stout
58e0f1e6c3
Expand support for XEP-0184.
...
New stanza interfaces:
Adding a message receipt request:
msg['request_receipt'] = True
Adding a message receipt:
msg['receipt'] = '123-24234'
Retrieving the acked message ID:
ack_id = msg['receipt']
print(ack_id)
'123-24234'
New configuration options:
auto_ack:
If True, auto reply to messages that request receipts.
Defaults to True
auto_request:
If True, auto add receipt requests to appropriate outgoing
messages.
Defaults to False
2012-03-16 10:51:25 -07:00