Commit graph libervia-backend/src/tmp
Author SHA1 Message Date
Goffi
6b0c5dc01a tmp(wokkel/pubsub): fixed configuration parsing 2017-04-03 00:13:33 +02:00
Goffi
b211d3afe6 tmp(wokkel/pubsub): removed affiliations attribute which was there twice + added missing _render_affiliations 2017-03-26 16:57:53 +02:00
Goffi
bc08258fe7 tmp (wokkel/pubsub): fixed affiliations (normal entity) handling 2017-03-23 20:59:25 +01:00
Goffi
2db9c76c4a tmp (wokkel/pubsub): fixed configuration setting 2017-03-23 09:07:10 +01:00
Goffi
34f6f89025 plugin XEP-0060: added setConfiguration/psNodeConfigurationSet + fix in tmp.wokkel.pubsub 2017-03-14 00:18:02 +01:00
souliane
f3f5fa82a1 tmp/wokkel (rsm): fixes elements count (items retrieval with RSM max = 0) 2016-03-18 09:14:00 +01:00
souliane
e2a807bdbc tmp (wokkel/mam): restore MAMPrefs being callable without argument when constructing a query:
- change occured in revision 1770 (f525c272fd6d)
2016-03-11 16:39:39 +01:00
souliane
b51b9a8887 test (RSM): fix according to modification in sat.tmp.wokkel.rsm in rev 1771 (b77dc676a4df) 2016-01-19 14:59:13 +01:00
souliane
a4fc134108 test (RSM): fix according to modification in sat.tmp.wokkel:
- parse has been renamed to fromElement in rev 1771 (b77dc676a4df)
    - use RSMResponse directly instead of ext_data in rev 1773 (6e867caf4621)
2016-01-19 12:18:29 +01:00
Goffi
cab9a9645e tmp (wokkel.mam): recipient and sender are handled in MAM Request. TODO: MAMRequest should inherit from generic.Stanza, the same way as for PubSubRequest 2016-01-08 18:54:23 +01:00
Goffi
e6a8b8ac85 tmp (wokkel.mam): MAMErrow now inherit from StanzaError so it can be handler properly by services 2016-01-08 18:52:28 +01:00
Goffi
237a47ab27 tmp (wokkel.rsm): raise RSMError when <after/> element is empty 2016-01-08 17:25:19 +01:00
Goffi
19d55f7c8a tmp (wokkel.rsm): RSMError now inherit from StanzaError, so they are correctly handled by services 2016-01-08 17:24:32 +01:00
Goffi
ea84a344db tmp (wokkel.rsm): fixed incorrect behaviour which was adding max_items attribute 2016-01-07 23:03:15 +01:00
Goffi
f7d64fa8b6 tmp (wokkel.rsm): fixed forgotten method renaming 2016-01-07 22:48:49 +01:00
Goffi
1f10ddb274 tmp (wokkel.mam): cleaning and bug fix:
- renamed MAMQueryRequest to MAMQuery
    - use of MAMQuery in queryArchive instead of separate arguments
    - fixed bad use of subprotocols.IQHandlerMixing.handleRequest
    - changed order of arguments in BuildForm to have more often used first
    - renamed parse to fromElement for coherency
    - added IMAMService interface
    - MAMService requestClass can be changed (it is specified in _request_class class attribute
    - use new-style classes where it make sense
    - MAMRequest.fromElement parse a <query/> parent instead of a <query/> directly
2016-01-05 23:20:22 +01:00
Goffi
cdac9644db plugin XEP-0060, tmp(wokkel.rsm): small refactoring:
- don't use getRSMResponse anymore: rsm.PubSubClient use a different signature which return items and RSMResponse, this is better than the previous method as if the requested don't call getRSMResponse, there is no memory leak anymore.
    - use RSMResponse directly instead of using ext_data, as other extension (like MAM) will be probably be managed with an other workflow
    - don't do a useless deep copy of pubsub.PubSubRequest._parameters on each instance anymore
    - RSMResponse.parse do now manage parsing of <set/> element directly
2016-01-05 23:20:22 +01:00
Goffi
831a00a604 tmp (wokkel.pubsub): PubSubRequest class can be overriden everywhere, including PubSubClient 2016-01-05 23:20:22 +01:00
Goffi
9c6d0fecc4 tmp (wokkel/rsm): various improvments:
- restored original tmp.wokkel.pubsub.PubSubService._toResponse_items
    - changed arguments order in RSMRequest.__init__ to have most common arguments first
    - added __str__ methods
    - better parsing/toElement
    - better handling of optional elements/attributes (count/index)
    - _toResponse_items handler RSM set elements without modifying original pubsub _toResponse_items
    - renamed parse to fromElement for coherency
2016-01-05 23:20:20 +01:00
Goffi
b5d2fda488 tmp (mam): various improvments:
- updated behaviour and namespace to new urn:xmpp:mam:1
    - fixed use of query_id in MAMQueryRequest/MAMClient
    - added a couple of assertions/checks
    - use try/except instead of hasAttribute
    - do not use generateElementsNamed (use elements method instead)
    - do not ignore missing elements
    - queryFields return a data form instead of a raw element
    - fixed bad use of namespace in several addElement
    - IMAMResource.onArchiveRequest doesn't have to return a Deferred anymore (but may do)
    - buildForm use data_form.Field class directly and doesn't use intermediate list anymore
    - /!\ XEP-0313 plugin is temporarly broken
2016-01-03 18:36:41 +01:00
Goffi
c626280ecf tmp (rsm): removed useless cast 2016-01-03 18:36:41 +01:00
Goffi
8de0d799e1 tmp (wokkel): removed delay as it is nearly identical to original one, and the additional exception should be catched elsewhere 2016-01-03 18:36:39 +01:00
Goffi
a668b23efc tmp (wokkel.pubsub): implemented missing notifyRetract 2015-11-25 15:35:21 +01:00
souliane
c831e8f851 tmp (wokkel): fixes RSM when maxItems is 0 2015-09-10 15:04:16 +02:00
souliane
536d1131e0 tmp (wokkel): fixes changeset 91631837ce5c (rev 1510) 2015-09-10 09:07:32 +02:00
souliane
af2014df91 tmp (wokkel): fixes RSM implementation to fit sat_pubsub answer when in "unrestricted" mode 2015-09-10 07:33:13 +02:00
Goffi
4eef249eb4 tmp(pubsub): added retract "notify" attribute management 2015-08-16 00:06:12 +02:00
Goffi
32592acdf5 tmp (wokkel.rsm): use of super instead of direct call in PubSubRequest 2015-08-15 22:24:40 +02:00
souliane
204c7fdc48 tmp (wokkel): pubsub response do not fail when target server doesn't handle RSM 2015-07-14 16:41:59 +02:00
souliane
a2962a1000 add tests for sat.tmp.wokkel 2015-07-14 15:22:02 +02:00
Goffi
f51848a0ad tmp (rsm): better use of domish.Element.elements() + minor fixes 2015-05-27 19:12:38 +02:00
Goffi
0ad78c5072 core (tests): test fixes 2015-04-23 14:19:43 +02:00
Goffi
13ed04b83d plugin groupblog, tmp (mam, rsm): some style improvments/fixes:
- renamed variables nammed after reserved word/module
    - removed class variables which are not needed
    - removed external parenthesis from asserts
    - in mam.MAMPrefs, removed default value for default argument, as None can't be used
    - (groupblog) extended docstring for DeferredItems and DeferredItemsFromMany
2015-04-23 13:35:21 +02:00
Goffi
526ca6a272 tmp (wokkel): licenses fixes:
the licenses headers were wrong, it was fixed: original work from Adrien Cossa is directly under AGPL v3 (with his agreement), work derivated from Wokkel is sublicensed to AGPL v3 as allowed by the original license, to stay consistent with the rest of the code base.
    Theses files (and only these ones) can be relicensed again to fill Wokkel license if Ralph plan to merge them upstream...
2015-04-23 10:57:40 +02:00
Goffi
59d21b93d1 plugins (groupblog, xep-0277) + tmp(rsm): improved style:
- removed external parenthesis in assertions
    - added blank line after first line of docstrings
    - replaced "__" prefixes by "_"
    - renamed variabled named after the reserverd word "max" to "max_"
2015-04-22 18:30:28 +02:00
Goffi
c50e5adb72 tmp (mam): fixed name shadowing + getDiscoInfo for mam fix:
getDiscoInfo now only returns MAM namespace when there is no node specified, this avoid having mam everywhere (which was causing issues in SàT PubSub's namespace delegation)
2015-04-17 10:39:41 +02:00
souliane
c259a80924 tmp: update wokkel MAM implementation 2015-01-15 21:02:41 +01:00
souliane
1a1deb5056 tmp, plugins: fixes the imports fron sat.tmp 2015-01-14 10:44:49 +01:00
souliane
24fafc9760 tmp: update tmp.wokkel.rsm, add tmp.wokkel.mam 2015-01-09 10:50:11 +01:00
souliane
642e8adbf4 use sat.tmp.wokkel as a buffer module until the changes are integrated to wokkel 2014-12-15 12:46:58 +01:00