Commit graph

1,615 commits

Author SHA1 Message Date
Goffi
ee65aa7f3c jingle XEP-0166: fixed session creation on non session-initiate actions 2015-11-17 19:39:08 +01:00
Goffi
2f561bec34 plugin XEP-0166: sendError now manage jingle conditions 2015-11-17 19:37:09 +01:00
Goffi
706b814e3f quick_frontend(profile manager): fixed alert messages 2015-11-17 12:39:38 +01:00
Goffi
e847a9f001 primitivus: fixed showDialog and XMLUI message dialog 2015-11-17 12:28:45 +01:00
Goffi
5702b2a849 core (params): removed resource from default JabberID (example value), as it is best practive to have resource binded by server. Advanced used can force it if needed though. 2015-11-16 11:58:11 +01:00
Goffi
fd271b69ba primitivus (xmlui): fixed closing on popup panel "OK" button press 2015-11-16 09:25:05 +01:00
Goffi
909a54995e primitivus: fixed alert case + alert in profileManager 2015-11-16 08:57:36 +01:00
Goffi
5226e6ef6b frontends (xmlui): fixed widget closing on submit 2015-11-16 08:57:02 +01:00
Goffi
7f8dc5849f plugin file: progressFinished and progressError are now sent on SatFile.close. eof Deferred attribute is removed, as it is not used and bring unnecessary complication 2015-11-16 00:24:49 +01:00
Goffi
6d2df889a1 jp (base, file): file command and progress fixes and adaptation to new API:
- progress use new API, and signals to monitor progression and avoid use of progressGet before progress is actually started
    - progress behaviour on event is managed by callbacks which are Jp attributes
    - progress with unknown or 0 size don't show the progress bar
    - better handling of errors
    - CommandAnswering is update to manage actions instead of the deprecated askConfirmation
    - managed actions use callback easy to associate with an action type.
    - file command is updated to manage these changes and the recent changes in backend behaviour
    - verbosity is used to display more or less message when sending/receiving a file
    - destination path can be specified in file receive
    - file receive doesn't stop yet, still need some work in the backend
2015-11-15 23:42:21 +01:00
Goffi
4233150d7b jp (base): added a self.disp method which manage verbosity and stderr + verbosity property 2015-11-15 23:25:58 +01:00
Goffi
8477d22012 jp (base): added quitFromSignal method to quit from signal handler with errcode without traceback, and addOnQuitCallback to manage cleaning callbacks 2015-11-15 23:16:54 +01:00
Goffi
0c5bf88da0 core: added callback_id in DataError message of launchCallback 2015-11-15 23:11:41 +01:00
Goffi
b419399ba2 plugin file: 'size' key is not added anymore in progress'data if size is 0 or not specified in SatFile 2015-11-15 23:11:38 +01:00
Goffi
de85e24577 core (xmlui), plugin file: added action_extra param to deferXMLUI/deferDialog which is merged to the action data dict when actionNew is called 2015-11-15 23:11:27 +01:00
Goffi
891a4c33af jp: added a --verbose command 2015-11-14 19:54:27 +01:00
Goffi
fbbb081425 backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument 2015-11-14 19:21:56 +01:00
Goffi
2c8b91ee6c core, plugin file: fixed progress id + data is now returned by getProgress, instead of being an argument to fill 2015-11-14 19:20:33 +01:00
Goffi
4826320188 jp: added profile/connect command 2015-11-14 19:19:04 +01:00
Goffi
1aecdcf2e9 jp: better profile commands:
- new "profile/default" command
    - info doesn't show password anymore by default, need to be explicitly requested
    - info and modify don't need to connect anymore
    - modify can now set default profile. As use_profile is set, at least a profile session need to be started when it would not be mandatory technicaly (if just setting the profile as default is needed). But this option should not be used often, and it's not a big side effect, so I don't feel the need to create a new dedicated command, or to do complicated checks to avoid the session start.
2015-11-14 19:18:10 +01:00
Goffi
182f192703 core, bridge: added a profileSetDefault method 2015-11-14 19:18:10 +01:00
Goffi
22696ec80b jp: profile session can now be started without connection:
- a new need_connect option is used when during BaseCommand init
    - if need_connect is True, profile connection is necessary, so use_profile must be True too
    - if need_connect if False, session can be started without connection, use_profile must be True
    - if need_connect is None, use_profile can be True (need_connect will be set to True) or False (need_connect is not used)
    - if need_connect is False (and so use_profile is True), a new --start-session option is usable
    - param get and set are the first commands to use this option, so parameters can be changed if connection is not working
2015-11-14 19:18:10 +01:00
Goffi
c377237add jp: added param/set command 2015-11-14 19:18:10 +01:00
Goffi
d620805fc7 bridge: new core method profileStartSession to start a session without connecting the profile 2015-11-14 19:18:10 +01:00
Goffi
e0a28858a8 core: profile session starting and connection are now separated. Moved profile session starting/authentication to memory module 2015-11-14 19:18:10 +01:00
Goffi
736dbfa1b4 core (memory): fixed a case where getProfileName was returning an empty string instead of raising an errror 2015-11-14 19:18:10 +01:00
Goffi
8e4180237f jp: optional positional arguments on "param get" command
category and name are both optionals:
        - if nothing is given, categories list is printed
        - if only a category is given, a list of params and their values is printed
        - if both category and name are given, the requested param is printed
2015-11-14 19:18:10 +01:00
Goffi
aa097525e3 jp: fixed bad --connect option check 2015-11-14 19:18:10 +01:00
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