Commit graph

1,563 commits

Author SHA1 Message Date
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
Goffi
c23c6c39b8 plugin IP discovery: better IP discovering:
- locals and external IP addresses can be discovered
    - if netifaces is available, it is used
    - same thing for NAT Port plugin
    - cache is no more managed per profile but globally, a signal or observer will be used in the future to detect connection changes
2015-09-29 17:54:25 +02:00
Goffi
1f29d5695d plugin nat-port: NAT port first draft:
- this plugin use UPnP-IGD (and maybe later NAT-PMP) to open a port or get local/external IP
    - for now, only IP retrieval is implemented
2015-09-29 17:54:24 +02:00
Goffi
2e70b01b28 core: more robust plugins loading:
- avoid stopping loading remaining plugins when a plugin raise an error
    - new error exceptions.MissingModule allows to detect a missing third party module, and to give instructions to get it
    - error during instanciation are catched too
2015-09-29 17:54:23 +02:00
Goffi
76e571e18b plugin ip, params: plugin IP discovery, first draft:
- a dedicated plugin now manage IP discovery, for now it uses external website, but it should implement XEP-0279 soon
    - a permission is requested to user for calling an external website. Once the permission is granted (it's global), it is not asked anymore.
    - the ip is discovered on demand, and cache is kept for the session.
    - memory.params.getParamA has a new parameter use_default, which allow to get None when a parameter is not set, instead of the default value.
        This allow to detected when we need to do the first permission request. memory.getParamA don't have this parameter.
2015-09-29 17:54:22 +02:00
Goffi
68ae6a407e core: removed forgotten breakpoint 2015-09-29 17:54:21 +02:00
souliane
28b031468d plugin tmp_demo_directory: removed 2015-09-14 08:52:00 +02:00
Goffi
c0bc337c40 core (xmlui): fixed submit_id returning None when its value is '' 2015-09-26 18:39:05 +02:00
Goffi
ea0eb492d5 core (XMLUI): restorer submit_id:
- submit_id was missing due to a previous change in commit a2e4b976e707
    - XMLUI.submit_id can now be None (not set) or empty string in addition to normal values
    fix bug 102
2015-09-26 15:00:27 +02:00
Goffi
8a0215a7ec plugin XEP-0234: removed forgotten debugging bridge method 2015-09-26 14:24:33 +02:00
Goffi
3b263f2c93 plugin XEP-0234: jingle file transfer first draft 2015-09-25 19:24:00 +02:00
Goffi
f90708de2a plugin XEP-0261: jingle in-band bystream first draft 2015-09-25 19:19:12 +02:00
Goffi
058b264d13 plugin XEP-0300: hashes management first draft 2015-09-25 19:19:12 +02:00
Goffi
490398c4e7 plugin file: first draft:
This plugin will be used to manage file transfers, and choose the best available method.
    It embed a class dedicated to files: SatFile, which act as a file objects but manage some high level stuffs (like progression).
2015-09-25 19:19:12 +02:00
Goffi
7121b58961 plugin XEP-0047, XEP-0096: In-Band Bystream plugin cleaning:
- some renaming, comments improvments, etc
    - progress callback is no more managed here, as it will be managed by application
    - no more file data is used, beside file_obj
    - a proper Deferred is used instead of success and error callbacks
    - more clean error sending method
    plugin XEP-0096 has been updated to handle changes. Its temporarily partially broken though
2015-09-25 19:19:12 +02:00
Goffi
0c5ec666c2 plugin XEP-0166: (jingle) first draft. Not all actions are managed yet 2015-09-25 19:19:12 +02:00
Goffi
66ad169227 core: progression handling improvments:
- getProgress has been renamed to progressGet to follown new naming convention
    - new signals: progressStarted, progressFinished and progressError to indicate state of progressing events
    - new method progressGetAll to get all progressing events of all profile (or only one profile)
2015-09-25 19:19:12 +02:00
Goffi
9e6646949a core (xmlui): deferDialog can now manage additional dialog options through the "options" argument 2015-09-25 19:19:12 +02:00
Goffi
ea2a3e584d core (contants): added PROF_KEY_ALL en PLUG_TYPE_* constants 2015-09-25 19:19:12 +02:00
Goffi
74d91860ad core (memory, params): minor docstrings updates 2015-09-25 19:19:12 +02:00
Goffi
db35bfb674 primitivus (XMLUI): manage message in FileDialog /!\ Urwid SàText need to be updated /!\ 2015-09-25 19:19:12 +02:00
Goffi
ebf0edb178 plugin XEP-0050: minor parentheses removal 2015-09-25 19:19:10 +02:00
souliane
dda1628f3d plugin XEP-0277, misc_groupblog: move getGroupBlogsAtom to XEP-0277, rename to mbGetAtom 2015-09-10 15:06:01 +02: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