Commit graph

2,220 commits

Author SHA1 Message Date
souliane
cdff2852b4 plugin room_game: decrease the level of two logging messages from warning to info 2016-03-11 16:38:23 +01:00
souliane
ba1e8079ed plugin misc account: separate profile creation and sending emails, so we can wait and send the emails at the right time (when we know that no error occured) 2016-03-11 12:31:33 +01:00
Goffi
7ebae7c89a jp (blog/edit): removed meta_file_path non existence check, as it is now re-used if it exists 2016-03-10 19:13:42 +01:00
Goffi
3ab15a6aee jp (blog/edit): a draft file can be directly specified 2016-03-10 18:05:37 +01:00
Goffi
27cd8412d5 plugin XEP-0060: fixed traceback if service was None 2016-03-10 17:50:17 +01:00
souliane
408b80a966 updated CHANGELOG for version 0.6.1 2016-03-10 12:01:29 +01:00
Goffi
5857a69546 plugin misc ip: changed URL of GET_IP_PAGE for the new one on salut-a-toi.org 2016-04-26 19:59:28 +02:00
Goffi
faef205761 plugin misc ip: fixed exception when a web error happen while retrieving IP from external website 2016-04-26 19:04:59 +02:00
Goffi
645ade7e73 primitivus: fixed window resize (was blocked by paste detection) 2016-04-23 23:46:35 +02:00
Goffi
1fc8580831 jp: added consts for exit codes, not used yet 2016-04-23 23:30:06 +02:00
Goffi
b8e62dd69c jp: --output option:
- new --output option can be added wich use_output. use_output can be True (in which case it wild default to C.OUTPUT_TEXT), or any of C.OUTPUT_TYPES (currently text, list and dict)
    - output change the output format mainly to make command result parsing more easy, but it can also be use to add fancy effects (like coloration)
    - outputs are added with plugins in the same way as commands (import of both is done in the same method)
    - in the command class, output need to be declared with use_output=C.OUTPUT_xxx, then the data only need to be processed with self.output(data)
    - outputs can have description (not used yet)
    - use_xxx argument handling has been refactored (minor refactoring) to be more generic
    - first outputs are "default", "json" (pretty printed) and "json_raw" (compact json)
    - the first command to use them is "profile list"
2016-04-23 23:10:03 +02:00
Goffi
724fa7541a primitivus: added bracketed_paste option in sat.conf (if set, the bracketed paste mode will be activated on Primitivus start) 2016-04-23 01:28:35 +02:00
Goffi
0d3a96a8da primitivus: bracketed paste mode is now detected 2016-04-23 00:31:59 +02:00
Goffi
6c30009ef8 primitivus: fixed paste detection/handling:
- mouse and window events are discarded
    - input_ is used to get text
    - cursor position is used to paste buffer in the good place, and updated once finished
2016-04-22 22:30:13 +02:00
Goffi
6dd58f0878 primitivus: paste is now detected, and put in edit bar, so use can check and validate it 2016-04-21 20:20:40 +02:00
Goffi
bf45c1d91c jp: forgotten shebang fixes 2016-04-19 20:09:02 +02:00
Goffi
3198ae10d9 added mutagen to recommended in README4PACKAGERS 2016-04-18 18:30:55 +02:00
Goffi
c4ac825c8f plugin XEP-0060: service, node and uri are added to metadata when doing a getItems 2016-03-09 16:59:29 +01:00
Goffi
3890a108f4 plugin XEP-0277: removed mbGetAtom which has not reason to be in the backend, as it is highly dependant of (web) frontend elements. The code will be moved to Libervia:
/!\ this break Libervia static blog temporarily, the time to commit the changes
2016-03-09 14:33:54 +01:00
Goffi
edeaa0f9bc plugin misc account: fixed handling of None/empty values in sendEmails.sendEmail 2016-03-09 12:54:26 +01:00
Goffi
0e1bf65f08 core (tools/config): fixed fixConfigOption:
C.DEFAULT_CONFIG was used so the default values were written if not set in the config file used, resulting in a overriding of values set in config files of higher level (e.g. ~/.config/sat/sat.conf could override /etc/sat.conf values).
2016-03-09 12:11:35 +01:00
souliane
7ca5b00183 plugin XEP-0096: add missing dependency to FILE plugin 2016-03-09 12:08:31 +01:00
souliane
f445c844c2 plugin misc_account: fixes sending email (twisted.mail.smtp.sendmail doesn't want unicode) 2016-03-09 11:52:18 +01:00
Goffi
e45ceec338 plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail. 2016-03-09 11:17:32 +01:00
Goffi
aa50a1e807 install: minimum Twisted version is now 15.2.0 as sendmail need username argument 2016-03-09 11:16:24 +01:00
souliane
dee7a09e98 README4PACKAGERS: add python-dbus to sat dependencies and inotify to jp recommendations 2016-03-08 12:43:19 +01:00
souliane
ce507c49da frontends (jp / blog): pass the profile to subprocess when using option --preview 2016-03-07 19:58:33 +01:00
Goffi
fe340c0135 jp (blog/preview): change watch for IN_MOVE_SELF event, needed at least for Emacs 2016-03-07 19:43:02 +01:00
souliane
a6f9cd5bfb plugin misc_account: fixes handling of deprecater parameter "admin_email" 2016-03-07 16:20:41 +01:00
Goffi
ed2219df8f plugin XEP-0045: overriden availableReceived method of MUCClient to work around a bug in Wokkel (affiliation and role are not set). TODO: propose a patch upstream 2016-03-07 15:48:11 +01:00
Goffi
a99d593a35 plugin XEP-0045: fixed feedback for /kick /ban and /afficiliate commands which should not be public 2016-03-07 13:50:57 +01:00
Goffi
e56883c613 plugin text commands: fixed log in genericErrback which was raising an exception when something than StanzaError was received 2016-03-07 13:49:13 +01:00
Goffi
cf588d3e74 jp (blog/edit): added a confirmation message when blog item has been successfuly published 2016-03-05 20:19:40 +01:00
Goffi
f74fd5552a blog (jp/edit): added --preview option to launch a "blog preview" in parallel 2016-03-05 20:19:17 +01:00
Goffi
8839f38813 jp (blog/preview): inotify improvments:
- InotifyError are catched (can happen if file is deleted during preview for instance)
    - handle IN_DELETE_SELF event which happen when editor write content in a new file and switch to it (tested with vim)
2016-03-05 19:24:10 +01:00
Goffi
63b26aad8f jp (blog/preview): open and preview commands can be changed in sat.conf with "blog_preview_open_cmd" and "blog_preview_update_cmd" in [jp] section + don't convert syntax when content is empty 2016-03-05 19:21:35 +01:00
Goffi
4b941591c5 jp: moved KeyboardInterrupt catch one level higher, so it is also catched if the loop is not started 2016-03-05 18:00:56 +01:00
Goffi
49f2646315 jp (blog): fixed syntax guessing on existing files 2016-03-05 18:00:12 +01:00
Goffi
e2eb4672b0 jp (blog/preview): added inotify support, so preview can be updated each time the file is modified (actually IN_CLOSE_WRITE is used, but this may change in the future) 2016-03-05 17:59:10 +01:00
Goffi
d34f3ab948 jp (blog/preview): xhtml cleaning is now used on preview 2016-03-05 15:43:14 +01:00
Goffi
75d78137ab jp (file): fixed bad quit call 2016-03-05 13:17:29 +01:00
souliane
849683ec70 frontends (tools/strings): fixXHTMLLinks skips internal anchors (links starting with "#")
fix bug 126
2016-03-05 13:58:02 +01:00
Goffi
f71e2451d7 misc (sat.sh): exec + better stop:
- use exec to launch twistd which is specially useful in foreground mode, so signals and other stuff are handled correctly
    - sat.sh stop now wait until the backend is actually stopped before exiting (before it was just sending the signal and leaving)
2016-03-04 23:24:06 +01:00
Goffi
ad7e88ebf5 jp (blog): moved common method in a BlogCommon class + added "current" as an item keyword for blog/edit 2016-03-04 11:22:41 +01:00
Goffi
f9d691fd26 jp (blog/edit): metadata file is reused if it already exists 2016-03-04 10:33:28 +01:00
souliane
c24537407b plugin XEP-0363: fixes a forgotten attribute update 2016-03-04 10:00:23 +01:00
Goffi
7428b57ac7 jp (blog): preview command, first draft 2016-03-03 18:28:53 +01:00
souliane
a278dfc841 jp (blog): add to EDITOR_ARGS_MAGIC parameters for (x)emacs and nano 2016-03-03 17:02:23 +01:00
Goffi
5704cb4586 jp (blog/edit): editor arguments can now be specified on sat.conf, and default on are applied for known editors:
- vim and gvim will open content and metadata file in a splitted window
    - gvim use --nofork option
    - installed a workaround for shlex.split not handling unicode before Python 2.7.3
    - some fixes
2016-03-03 15:57:06 +01:00
Goffi
f993fa07df jp (blog/edit): removed content_rich from KEY_TO_REMOVE_METADATA as it is never given by backend 2016-03-02 19:53:53 +01:00