Commit graph

1,587 commits

Author SHA1 Message Date
Goffi
ce4e717ea8 core, bridge (params): added asyncGetParamsValuesFromCategory (yes that's a long name!) method to retrive params names and values for a given category 2015-11-14 19:18:10 +01:00
Goffi
bfd143b1e4 bridge, core(params): removed obsolete methods:
- getParams and getParamsForCategory are removed from bridge: XMLUI is now used in place of the old params XML
    - getParamsForCategory has also been removed internaly, as it is now unused, getParams is still used to construct the XMLUI
2015-11-14 19:18:07 +01:00
Goffi
aaa3c32378 plugins XEP-0096, XEP-0260, file: sendFile method is managed by file plugin, which choose the best available method + progress_id fix 2015-11-14 19:18:05 +01:00
Goffi
f61c88f784 plugin XEP-0065: session cleaning and timeout + log choosed candidate when using SI File Transfer 2015-11-13 16:46:32 +01:00
Goffi
ab910bebfe plugins XEP-0047, XEP-0065, XEP-0096: fixed use of failure.condition insteand of failure.value + removed gettext use for local logs 2015-11-13 16:46:31 +01:00
Goffi
2a3b5ad8e3 primitivus: partly reverted commit 641cfd2faefe :
- showDialog is actually still used and useful
    - updated the code to use the widget argument in removePopup
2015-11-13 16:45:56 +01:00
Goffi
455a7e00f7 plugin XEP-0065: chunk size optimization: 64Kio is used except for proxy were it is set to 4Kio, to avoid wild disconnection by Prosody's proxy 2015-11-11 22:28:48 +01:00
Goffi
73139e59ba Primitivus: better popups handling:
- widget to remove can now be specified in removePopUp: if it is not the current one, it will be removed from queue
    - Primitivus.Alert method is a shortcut to display an Alert which will be removed on "OK" press
    - showDialog is now obsolete and removed, if generic dialog creation is needed, XMLUI can be used
2015-11-11 18:32:59 +01:00
Goffi
719a624892 quick_frontend, primitivus (xmlui): removed _xmluiClose from workflow were submit is triggered, as submit launch the callback which close the dialog itself + fixed dialogs _xmluiClose 2015-11-11 18:29:32 +01:00
Goffi
a0b81bda7c plugin XEP-0047: some cleaning 2015-11-11 18:21:20 +01:00
Goffi
dc0dbb149c plugins XEP-0020, XEP-0065, XEP-0095, XEP-0096: fixed file copy with Stream Initiation:
/!\ range is not working yet
    /!\ pipe plugin is broken for now
2015-11-11 18:19:49 +01:00
Goffi
9911d60449 plugins IP: getLocalIPs now return localhost IP instead of an empty list if no non-localhost ip can be found 2015-11-11 18:19:49 +01:00
Goffi
674001781f plugins XEP-0234, file: moved human file size conversion to file plugi 2015-11-11 18:19:49 +01:00
Goffi
a022a36b5b plugins XEP-0234, file: moved file request dialog to file plugin 2015-11-11 18:19:47 +01:00
Goffi
f21c94b205 core (client): added a sendError method to easily build error response from <IQ\> stanza 2015-11-11 14:56:05 +01:00
Goffi
1d647b5761 quick frontend: fixed resources display in quickContactList 2015-11-08 15:16:14 +01:00
Goffi
af953d89a9 plugins XEP-0234, XEP-0260, XEP-0261: jingle session termination is managed by application (XEP-0234) instead of transport 2015-11-08 14:48:04 +01:00
Goffi
728e15c90c plugins XEP-0260, XEP-0065: proxy handling:
- XEP-0065: Candidate.activate launch proxy activation
    - XEP-0065: a candidate is individually connected with connectCandidate
    - transport-info action handling can now manage candidate and proxy infos
2015-11-08 14:44:33 +01:00
Goffi
a629197419 plugin XEP-0065: fixed CHUNK_SIZE to 4096 to avoid wild disconnection by some proxies (Prosody's proxy65 disconnect if it receive bigger chunks) 2015-11-08 14:44:33 +01:00
Goffi
5e356f28f0 plugins XEP-0234, file: use of SatFile for writing too 2015-11-08 14:44:33 +01:00
Goffi
31c9e0d06e plugins XE0166, XEP-0234, XEP-0260, XEP-0261: renamed session key managing other peer's jid to "peer_jid" instead of "to_jid" 2015-11-08 14:44:33 +01:00
Goffi
1a5f1bd144 plugin ip: implemented XEP-0279 for external ip retrieval + fixed bad exception handling 2015-11-08 14:44:30 +01:00
Goffi
83eef838a6 plugin XEP-0085: renamed "__xxx" methods to "_xxx" 2015-11-06 17:09:45 +01:00
Goffi
2c0d0fc8db core (xmpp.py): fixed bad import 2015-11-06 17:09:42 +01:00
Goffi
04929c74d4 plugin XEP-0085: fixed chatstate blinking following 0632d96f08ad change 2015-11-03 10:23:08 +01:00
Goffi
76a0afedf1 plugin NAT Port: added instruction with pip when miniupnpc is missing 2015-11-02 22:09:13 +01:00
Goffi
913ab48496 README: removed "Privacy Warning" as external website is now only called after user agreement 2015-11-02 22:02:41 +01:00
Goffi
5e208acc58 plugin XEP-0260: first draft 2015-11-02 22:02:41 +01:00
Goffi
c3ff0a1513 plugin XEP-0065, XEP-0096: preparation for plugin XEP-0260 implementation:
/!\ SI File Transfert (plugin XEP-0096) is temporarily broken
    /!\ proxy handling is temporarily broken
    plugin XEP-0096: use of Deferred for plugin XEP-0065 in the same way as for plugin XEP-0047
    plugin XEP-0065:
        - use of Deferred for sessions
        - plugin IP is a dependency
        - plugin NAT-PORT is used if available
        - everything is now automatic, params are disabled for now (may be re-used in the future to force port or proxy)
        - proxy infos are managed with a namedtuple
        - connexion candidates are managed with a dedicate class
        - priorities can be used for candidates, as needed for XEP-0260
        - transfer can now be managed in both direction, with client or server
        - socks5 server is launcher on demand, once for all profiles
        - helper methods to try and find best candidate
        - connection test and file transfer are done in 2 times
2015-11-02 22:02:41 +01:00
Goffi
ed7e784ffe plugin XEP-0047: minor improvements 2015-11-02 22:02:41 +01:00
Goffi
a24031596a plugin XEP-0234: "senders" handling 2015-11-02 22:02:41 +01:00
Goffi
170d697016 plugin XEP-0166, XEP-0234, XEP-0261:
- transport and application data are now managed in separate dictionaries
    - new client.IQ method is used
    - new buildAction helper method for applications and transports
    - "role" is now stored in session_data
    - "senders" is now stored in content_data
    - plugin XEP-0166: "transport-info" action is now managed
    - plugin XEP-0166: application namespace and handler are now managed in a namedtuple
    - plugin XEP-0234: <range/> element is added by responder if not already present
2015-11-02 22:02:41 +01:00
Goffi
7ca36bc79d plugin ip: local ip cache + DNS error detection 2015-11-02 22:02:41 +01:00
Goffi
649ec27b3e plugin NAT port: added UPnP IGD mapping + automatic unmapping on backend shut down 2015-11-02 22:02:41 +01:00
Goffi
c557eba2e2 fixed bad inheritance of SatFile 2015-11-02 22:02:41 +01:00
Goffi
341143445b core (disco): use of “profile” instead of “profile_key” in several disco methods 2015-11-02 22:02:41 +01:00
Goffi
083f426b24 core (client): add IQ method to easily create an IQ stanza with the current xmlstream, and manage result with a Deferred. 2015-11-02 22:02:41 +01:00
Goffi
aca7307452 core: plugin unload:
Call unload() if it exists on all loaded plugin instances when leaving SàT. This method will probably be used later for hot (un)loading
2015-11-02 22:02:41 +01:00
Goffi
6a84960811 core (tools): “DelayedDeferred” implementation, which is a Deferred launched after a delay 2015-11-02 22:02:41 +01:00
Goffi
45d040d8c6 launching script: use SIGTERM instead of SIGINT with the “stop” command 2015-11-02 22:02:41 +01:00
Goffi
55f98749e1 plugin XEP-0085: fixed bad use of threads resulting in delay and crash when stopping the backend. 2015-11-02 22:02:41 +01:00
Goffi
9877497dbc core (stdui): fixed a keyword argument not changed after commit 48706f4ff19c 2015-11-02 22:02:41 +01:00
Goffi
410c0ce462 jp: renamed “params” command to “param” for consistency with other commands + added a “get” subcommand 2015-11-02 22:02:41 +01:00
Goffi
810a40c51c jp: separate password and connection of profile in --connect and --pwd arguments 2015-11-02 22:02:41 +01:00
Goffi
d0a2669051 social contract: fixed a typo 2015-11-02 22:02:37 +01:00
Goffi
969af13f59 plugins: added new MissingModule exceptions to plugins using third party modules 2015-09-30 17:25:09 +02:00
Goffi
72b108f3a2 README, README4PACKAGERS: some update about third party modules. 2015-09-30 17:24:21 +02:00
Goffi
f52abec673 plugin ad-hoc D-Bus: exception fixe + minor fixes 2015-09-30 17:24:19 +02:00
Goffi
07e8942ba9 plugins: lowered security limits for non dangerous actions. A reference documentation is in progress to choose values: http://wiki.goffi.org/wiki/Security_Limits/en 2015-09-29 20:19:43 +02:00
Goffi
48f13ae31e reverted patch ad4ec8d9235e: there must not be security limit on room configuration 2015-09-29 19:07:32 +02:00