Commit graph libervia-backend/frontends/src/jp/cmd_blog.py
Author SHA1 Message Date
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
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
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
Goffi
41f19f63ec base (blog/edit): added a way to block publishing by adding "publish": "false" in metadata file 2016-03-02 19:46:01 +01:00
Goffi
272d6f84d6 jp (blog/edit): added metadata handling through a .json file (named like content temporary file, but with extension replaced by "_metadata.json"). Modification to this file before the end of edition will be taken into account. 2016-03-02 19:18:14 +01:00
Goffi
dc8f07aec4 jp (blog): edit command, first draft:
- can edit a new or existing item, by default edit a new item
    - item are selected with a shortcut, for now only "new" and "last" are handled. URI handling is planed, specially xmpp: URIs
    - file are edited using EDITOR env variable, or editor in [jp] section in sat.conf
    - current syntax is used, file extension is choosed according to syntax, to make syntax coloration and other goodies in editor available
    - if file is empty or not modified, nothing is published
    - for now, title, tags and commend desactivation are handled with optional arguments, but other are planed, and a metadata system should come soon
2016-03-01 01:54:21 +01:00
Goffi
169bc43793 jp: all commands now use the new start method and set need_loop in __init__ when needed 2016-02-29 16:52:51 +01:00
souliane
c18f64f4fb frontends (jp): onActionNew displays xmlui message if no meta_type is defined and xmlui is defined 2016-02-04 11:48:37 +01:00
souliane
0eaf531608 frontends (jp/blog), plugin blog_import: fixes:
- argparse argument with nargs > 1 and default == {} crashes when reading the user input
    - separate blog import options with a new line
    - convert DBus strings received by the backend to unicode
2016-02-04 11:44:43 +01:00
Goffi
13d24075c1 jp (blog): import now show progression + value to add to sat.conf for URLs redirection 2016-01-24 18:24:01 +01:00
Goffi
d56e3f1cae jp: added a blog/import command to handle new blog import plugin 2016-01-22 20:24:17 +01:00