Commit graph

1,882 commits

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
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
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
b67ee6bb47 jp (base): fixed Jp.quit when exit code is 0 2016-03-02 19:45:02 +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
b28dcdbfb3 plugin text syntaxes: added 'poster' and 'controls' in allowed attributes for cleanXHTML 2016-03-01 16:36:16 +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
893aa7a595 plugin XEP-0277: service can be None in mbGet, resulting in a request on default pubsub service of profile (i.e. profile's PEP) 2016-03-01 01:47:32 +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
Goffi
89f6fe8605 jp (base): refactored need_loop so it is set only when the command is run. It can now be set in __init__ methods of commands classes 2016-02-29 16:52:51 +01:00
Goffi
19bdc872c6 jp (base): added a CommandBase.start method which is called by run or connected, so subclasses can implement it (this is for simplicity sake, as it's not always clear if run or connected must be used) 2016-02-29 16:52:51 +01:00
Goffi
5a81941c33 jp (profile): added confirmation and --force arguement to profile/delete 2016-02-29 16:52:51 +01:00
Goffi
fea3296b89 jp (base): use need_connect attribue to detect if connection is needed instead of self.args.profile, as profile argument can be used by any command even if use_profile is False 2016-02-29 16:52:51 +01:00
Goffi
8403bd61ae core (memory, config): moved parseMainConf to tools/config so it can be used by frontends too 2016-02-29 16:13:47 +01:00
Goffi
9de26f66ea tools (utils): improved repository version detection:
- getRepositoryData has 2 new option: is_path to give absolute path instead of module name, and save_dir_path to save the repository data in a pickled dictionnary
    - if "hg" executable doesn't work, a .hg_data dictionnary is checked if present in module root path
2016-02-28 13:42:31 +01:00
Goffi
00f47f8181 core (tools): fixed bad call to "hg id" when hg is not working to guest revision, which was the cause of an Exception 2016-02-28 01:57:51 +01:00
Goffi
735db1b94a plugin account: modifications in welcoming email:
- removed "it misses some features and it's not stable enough to be used for any serious purpose." as we are being more and more close to general audience version
    - removed the reference to http://salut-a-toi.org/faq.html#certificate as we have no more certificate warning since the move to let's encrypt on the demo server
2016-02-27 14:55:23 +01:00
Goffi
63c5083839 plugin account: email sending improvments:
the following new options are handled:
        - email_sender_domain (default None)
        - email_port (default 25)
        - email_username (defaut None)
        - email_password (default None)
        - email_starttls true to force starttls (default false)
        - email_auth true to require authentication (default false)
    in addition, admin_email has been deprecated in favor of email_admins_list which can handle several addresses
2016-02-27 14:49:20 +01:00
Goffi
413af63280 plugin XEP-0060: fixed bad xmpp: URI generation in getNodeURI 2016-02-25 16:21:17 +01:00
Goffi
c92ce5da75 plugin blog import dokuwiki: fixed bad use of MissingModule and unmodified docstring 2016-02-25 16:05:31 +01:00
Goffi
69df5fc49c plugin blog import: mb_data handle unicode only, so comments_service must be a unicode and not a JID 2016-02-24 16:11:36 +01:00
souliane
01f851c9f7 plugin misc_upload: fixes things that have been forgotten after a refactoring 2016-02-23 15:02:03 +01:00
souliane
e25f9def1b plugin XEP-0277: add a forgotten string to JID conversion 2016-02-22 14:33:47 +01:00
souliane
2a05b19bab quick_frontend (blog): correction for the previous patch:
- "comments_node" and "comments_service" are not needed when "comments" is already here
    - to set "allow_comments" to True when updating a main item was enough
2016-02-22 13:44:14 +01:00
souliane
e7c0368b13 quick_frontend (blog): fixes main item update (comment's data were lost) 2016-02-22 13:15:02 +01:00
Goffi
bd971186de plugin text syntaxes: fixed defaut syntax handling 2016-02-18 15:41:47 +01:00
Goffi
0927253b7e install: removed "nox" option as there is no more X dependency since WIX has been deprecated 2016-02-10 12:48:19 +01:00
Goffi
6d1bb065cd plugin XEP-0065: fixed timer cancellation when a profile is receiving a file 2016-02-08 18:06:07 +01:00
souliane
7f2d6e56c7 plugin blog_import_dokuwiki: also uses the generic image uploader from blog_import (when media_repo is empty and OPT_UPLOAD_IMAGES is True) 2016-02-04 18:56:53 +01:00
souliane
657c234406 plugin blog_import_dokuwiki: fixes wrong URL when a substitution occurs twice 2016-02-04 17:37:33 +01:00
souliane
de3eaeeeeb plugin blog_import_dokuwiki: refactor to make it look more similar to blog_import_dotclear 2016-02-04 17:36:22 +01:00
souliane
0b81c7726d plugin blog_import_dokuwiki: first draft 2016-02-04 12:29:43 +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
12a18b9d51 plugin XEP-0277: fix bad call after methods renaming 2016-01-28 16:44:47 +01:00
Goffi
27e6434132 plugin maildir: added an option to block intercepted normal messages:
NOTE: this plugin is old and experimental, it need a good review/cleaning.
2016-01-25 18:04:24 +01:00
Goffi
d7bca38b31 core (params): return given profile for ProfileUnknownError 2016-01-25 17:03:45 +01:00
Goffi
04a42fa9a3 core (config): getConfig now returns unicode and raise exceptions.ParsingError in case of parsing problem 2016-01-24 18:28:08 +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
c5d6e545f5 core (config): _dict values are now handled with json syntax 2016-01-23 20:06:01 +01:00