Commit graph

1,772 commits

Author SHA1 Message Date
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
d9e5b24470 plugin xep-0059: minor cleaning 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
348be27934 copyright update 2016-01-03 16:28:30 +01:00
souliane
55307fb62a plugin misc_account: fixes login messages when sending emails 2015-12-22 16:20:25 +01:00
souliane
2a99e4bc38 quick_frontend (chat): temporary fix for bug 12:
- avoid duplicate one2one message (before the history + as a part of it)
    - do not display "=> <nick> has joined the room" for each occupant when we have just joined a MUC
2015-12-22 11:44:51 +01:00
souliane
87bd260149 quick_frontend (chat): scroll down after having printed the history 2015-12-22 11:43:02 +01:00
souliane
f153fd885d quick_frontend, primitivus (chat): printing the history is left to quick_frontend 2015-12-22 11:39:45 +01:00
Goffi
6c8121324c quick_frontend (blog): replaced first argument in addEntry by edit_entry, so it can be managed separately from entries + handle it in Entry.delete 2015-12-18 19:36:00 +01:00
Goffi
f8a8aa4b08 plugin XEP-0060: None is no more used in addManagedNode, but all nodes prefixed with a registered one are now triggered 2015-12-18 15:06:58 +01:00
Goffi
ea0da04fdf plugin XEP-0065: better handling of finished Deferred 2015-12-17 22:38:00 +01:00
Goffi
7d54ddff12 plugin XEP-0260, XEP-0065: fixed session hash handling:
with XEP-0260, we need to manage 2 hashes (one with SHA1(SID + Initiator JID + Responder JID) and the other with SHA1(SID + Responder JID + Initiator JID)). This was not handled correclty, resulting in transfer failure in several cases.
2015-12-17 22:37:59 +01:00
Goffi
84fbbbc299 plugins XEP-0065, XEP-0260: fixed session creation order: session is created earlied, and file object associated in a second time if needed 2015-12-17 22:37:58 +01:00
Goffi
bb82cfc78a plugin XEP-0260: better proxy error handling:
- display a better message in logs
    - fixed fallback to IBB
2015-12-17 22:37:56 +01:00
Goffi
691b881fdc plugin XEP-0260: kill s5b session if session is declined 2015-12-17 22:10:53 +01:00
Goffi
7769c53a04 plugin XEP-0166: jingleTerminate is called (if present) on applications and transports plugins on session-terminate action, can be used to do some cleaning 2015-12-17 22:08:11 +01:00
Goffi
3c71aef8af plugin XEP-0234: log file transfer "terminated" instead of "completed", as the file may not be complete (check is done after) 2015-12-17 22:02:52 +01:00
Goffi
b140240996 core (disco): display a warning when a disco info/items request failed, and return empty DiscoInfo/DiscoITems 2015-12-17 21:58:41 +01:00
souliane
8aec15cecf primitivus (chat): duplicate message check is actually not needed when retrieving local MUC history is disabled 2015-12-16 13:29:24 +01:00
souliane
3cc6e41ad6 tools, plugins XEP-0071, XEP-0277: remove recently added expandNewLinesToXHTML, just leave it to the convertors 2015-12-15 20:29:19 +01:00
souliane
99785755e1 quick_frontend: restore printing the day change while displaying history 2015-12-15 20:05:27 +01:00
souliane
77c0656c85 frontends: small message refactorisation:
- factorize some treatments that were done both in Primitivus and Libervia
    - the way it was done, especially with QuickChat.printMessage returning a tuple, was quite disturbing
    - FIXME: we can probably remove some arguments and do a deeper factorization e.g with QuickChatText
2015-12-12 12:18:54 +01:00
souliane
4d3d6fb8b8 memory (params): fixes loading user value and building params XML for jids_list type 2015-12-15 17:43:36 +01:00
Goffi
05541beae2 plugin extra_pep: replaced name by a short one 2015-12-15 17:03:30 +01:00
Goffi
0ecb55517d core (params): removed unused values 2015-12-15 16:25:37 +01:00
Goffi
77c3e83ec8 plugin extra_pep, params: fixed insecure building of jids_list 2015-12-15 16:25:19 +01:00
souliane
ab7ae07a83 plugin XEP-0203, core (xmpp): leave the management of delay element to XEP-0203 (fix bug 59):
- this patch reveals a bug in primitivus Chat.printMessage relative to MUC history (the test to discard duplicates is wrong)
2015-12-11 11:25:29 +01:00
souliane
a6a967b2f0 complete the Exception's list when catching JID error:
- Twisted JID constructor raises not only jid.InvalidFormat but also RuntimeError and AttributeError
2015-12-15 13:30:47 +01:00
souliane
3b84fc1765 plugin misc_extra_pep: use a user parameter (jids_list) instead of a general configuration value 2015-12-11 09:12:11 +01:00
souliane
9e0b24a4a5 memory (params): parameter jids_list values are specified with <jid>...</jid> 2015-12-15 14:12:19 +01:00
souliane
a29630c3b6 memory (params): forbid to pass a value to a parameter of type "list" with <param value...> 2015-12-15 13:33:35 +01:00
Goffi
26b892c622 reverted patch 58ecc0e2e6fc as it may hide an other issue 2015-12-15 14:25:26 +01:00
Goffi
18b1ca3d31 core (xmlui): fixed deferConfirm 2015-12-15 12:41:07 +01:00
Goffi
2a5a33df1f core (xmlui): fixed bad call of deferredUI in deferXMLUI 2015-12-15 12:20:55 +01:00
souliane
d38543029f tools: expandNewLinesToXHTML replaces two or more \n instead of each ones 2015-12-11 07:54:14 +01:00
souliane
7e9833b921 plugin XEP-0277: revert use of expandNewLinesToXHTML for incoming messages:
- this was here for retro-compatibility with messages previously posted from Libervia
    - but this is not appropriate and will add some extra <br /> e.g. in messages from Movim
2015-12-10 15:14:23 +01:00
souliane
2df5519eda plugin XEP-0277, xml_tools: restore decapsulation of XHTML content
- to avoid successive nesting of the content in <div>
    - otherwise there is a new <div> at each item modification
2015-12-10 14:21:51 +01:00
souliane
ca5c913ce2 xml_tools, plugin XEP-0071, XEP-0277: add method expandNewLinesToXHTML:
- \n in XHTML content should not be converted to <br /> by the frontend
    - save it directly in the Atom payload for better compatibility with other clients
2015-12-10 14:00:21 +01:00
souliane
17476b420c quick_frontend: catch an exception that can occurs when using a concurrent client 2015-12-10 10:44:04 +01:00
souliane
8f8880be10 plugin misc_radiocol: the smaller fix in the world (1 character!) 2015-12-09 03:33:30 +01:00
souliane
a8a58cb01a plugin misc_account: send email to the admins when a new profile is created for an external XMPP account 2015-12-09 01:59:15 +01:00
souliane
192b5a0275 plugin XEP-0277, EXTRA-PEP: get massive blogs from all the roster also retrieve items from a special JIDs list defined in EXTRA-PEP 2015-12-08 17:41:34 +01:00
souliane
1f17172b52 reverted revision 2ebe66a96d05 2015-12-08 16:55:54 +01:00
souliane
9ab8ac9083 plugin misc_account: auto add some contacts at profile creation 2015-12-07 20:35:21 +01:00
souliane
f3a5cb2a96 core, plugin misc_account: set XMPP connection max retries to 0 when checking if an external account exists 2015-12-07 19:56:12 +01:00
Goffi
ffee469c3e Added tag 0.6.0 for changeset 21e6d11615ea 2015-12-07 15:57:33 +01:00
Goffi
d978e4918b core: avoid initialisation blocking when a long callback is added to backend.initialised (could prevent sessions starting) 2015-12-07 13:10:44 +01:00