Commit graph

1,801 commits

Author SHA1 Message Date
souliane
aa1e0714dd tools (strings): add method fixXHTMLLinks to add a scheme if missing, and force opening in new tab 2016-01-15 12:27:34 +01:00
souliane
e3144d93c2 jp (roster): change groups delimiter for "roster get" output, from "|" to "\t" 2016-01-13 22:10:06 +01:00
souliane
8471941dc7 jp (roster): add command "roster get" with parameters "--subscriptions", "--name" and "--groups" 2016-01-13 20:51:42 +01:00
souliane
988990f6f5 jp (roster stats): add some extra information 2016-01-13 19:46:43 +01:00
souliane
6a680d9ff8 jp (roster): add parameters "--no_from" and "--no_to" to command "roster purge" in order to remove the contacts with no from/to subscription 2016-01-13 19:26:09 +01:00
souliane
8a920d41c0 jp: add command "roster stats" 2016-01-13 18:54:58 +01:00
Goffi
bc371c5569 primivitus: Primivitus doesn't handle microblog yet, configure QuickApp accordingly 2016-01-13 18:55:30 +01:00
Goffi
e7d024784e bridge (D-Bus): fixed handling of profile in kwargs:
kwargs are not handled by python D-Bus (i.e. they are not sent through D-Bus). The "profile" and "profile_key" kwargs are often used through SàT with the bridge, this was working so far because they were used for core methods (which have a signature in DBus.py handling profile), or in Libervia browser who ignore profile argument.
    But if the profile or profile_key was used as a keyword for plugin method outside of Libervia browser, they were ignored, this commit fix this by adding them to the args list.
2016-01-13 18:44:32 +01:00
souliane
2f88a6ed08 jp: add command "roster purge" to remove the contacts with no from/to subscription 2016-01-13 18:15:20 +01:00
Goffi
7a2b6fa909 tools (xml_tools): removed unused import 2016-01-13 13:12:50 +01:00
Goffi
fbb50a025d reverted patch 3770d13776e8 2016-01-13 13:11:20 +01:00
souliane
fab073076c tools (strings): add a parameter "new_target" to addURLToText 2016-01-13 13:08:31 +01:00
souliane
67cf4c7913 plugin XEP-0045: raise a special error when the room has already been joined 2016-01-13 13:07:36 +01:00
souliane
923dcc593d primitivus (chat): since dialog refresh is done in message notification, print the message first and then notify 2016-01-13 08:50:40 +01:00
souliane
f16e277e8f quick_frontend, primitivus: mechanism to signal a new message reception when the window is hidden (even if the message is actually displayed):
- for now this is only used by Libervia
2016-01-12 17:54:38 +01:00
souliane
a08a073503 quick_frontend, primitivus (chat): move notification command to quick_frontend 2016-01-12 17:52:17 +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
48e8286c1b plugin XEP-0277: don't use max_comments if it is 0 in getFromManyWthComments bridge callback 2016-01-07 22:48:21 +01:00
Goffi
65158b0f47 plugin XEP-0060: fixed extra mam filters parsing 2016-01-07 16:19:43 +01:00
Goffi
b3428838cc plugin XEP-0060: MAM integration:
- removed useless XEP-0059 recommendation
    - added XEP-0313 as a recommended plugin
    - parseExtra now manage mam_* keys (mam_filter_[name] to use a filter)
    - if a mam request is in 'mam' key of extra parameted in getItems, a MAM request is done, but the result is returned in the same way as for normal getItems, making like more easy for other plugins and for frontends
2016-01-05 23:20:22 +01:00
Goffi
c5320bb949 plugin XEP-0313: cleaning and improvments:
- moved common namespaces to core.constants
    - removed useless dependencies and recommendations
    - removed all bride methods as they where there only for testing purpose
    - don't use a plugin dict to store MAM clients, put them in profiles' clients instead
    - removed message trigger in favor of an observer which is triggered only when specific queryid is used
    - new getArchives method which grab all result and return them all at once
2016-01-05 23:20:22 +01:00
Goffi
ad9486784c plugin XEP-0277: ignore maxItems if it is null 2016-01-05 23:20:22 +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
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