Commit graph

4,761 commits

Author SHA1 Message Date
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
Goffi
d1fed06699 jp: an onProgressUpdate method is now called on each progress update, allowing to handle metadata 2016-01-23 20:04:28 +01:00
Goffi
7fddbe943e plugin blog import, XEP-0277: progress + redirect:
- progression is now handled
    - url redirections are handled with PubSub URIs, and returned as metadata with progressFinished
    - tmp_dir is cleaned in a finally close
2016-01-23 20:01:28 +01:00
Goffi
3ff80aa4a6 bridge (template): fixed docstrings 2016-01-23 19:56:25 +01:00
Goffi
0815ee1576 plugin XEP-0060, XEP-0277: added getNodeURI method 2016-01-23 19:53:16 +01:00
Goffi
43ecaa5af9 jp (message): message is now a subcommand, and the sending command is moved to message/send 2016-01-22 21:06:41 +01:00
Goffi
d56e3f1cae jp: added a blog/import command to handle new blog import plugin 2016-01-22 20:24:17 +01:00
Goffi
c43362ab3f plugin blog import dotclear: this plugin import Dotclear 2 backups 2016-01-22 20:24:17 +01:00
Goffi
c641953ebf plugin blog import: this plugin is the base handling blog importers:
- blog importers are plugin which register to this one with the "register" method
    - blog import manage uploading the given blog data to a PubSub server
    - filters can be used.
    - current filters fixe the <img> src without host, and upload images to XMPP server
2016-01-22 20:24:17 +01:00
Goffi
94ec775019 plugin upload, XEP-0363: splitted fileUpload in fileUpload + upload:
fileUpload is used by external frontends, while upload can be used by frontends. upload return in addition to the progress_id a download_d Deferred which fire with URI when file is uploaded.
    changed option ignore-tls-errors to ignore_tls_errors.
2016-01-22 20:24:17 +01:00
Goffi
333a43e824 plugin XEP-0277: fixed encoding issue, specially with parseCommentUrl, which could lead to the impossibility to find comments node 2016-01-22 20:24:17 +01:00
Goffi
dff93495b3 plugin XEP-0277: moved NS_XHTML namespace to constants + adapted parsing to new behaviour of ElementParser 2016-01-22 20:24:17 +01:00
Goffi
7066c7775b plugin XEP-0277: comments handling improvments:
- if comments*, comments*_node or comments*_service are provided, they are used instead of generated values
    - moved node and service generation to getCommentNode and getCommentService, so they can be used by an external plugin
2016-01-22 20:24:17 +01:00
Goffi
7dc6760e0f plugin XEP-0277: added missing author_email parsing 2016-01-22 20:24:17 +01:00
Goffi
99894bd6f2 core (xml_tools): added a method to find all elements corresponding to criteria 2016-01-22 20:24:17 +01:00
Goffi
6c11191230 core (xml_tools): unescape HTML sequences to avoid parsing error in ElementParser 2016-01-22 20:24:17 +01:00
Goffi
4a44b41793 core (xml_tools), plugin XEP-0277: ElementParser element now manage automatically the wrapping with <div/> element when needed + fixed content_xhtml/title_xhtml in XEP-0277 2016-01-22 20:24:17 +01:00
souliane
b51b9a8887 test (RSM): fix according to modification in sat.tmp.wokkel.rsm in rev 1771 (b77dc676a4df) 2016-01-19 14:59:13 +01:00
souliane
a4fc134108 test (RSM): fix according to modification in sat.tmp.wokkel:
- parse has been renamed to fromElement in rev 1771 (b77dc676a4df)
    - use RSMResponse directly instead of ext_data in rev 1773 (6e867caf4621)
2016-01-19 12:18:29 +01:00
Goffi
950af3bf70 plugin XEP-0277: removed cleanXHTML on output data:
- while it is mandatory to clean input data, output data sent by frontends should and need to be clean
    - cleaning all output data means that we can't send be sure that all the XHTML we send is not modified
    - it's a waste of resources as cleaning today reparse the data with lxml
    - behaviour may change in the future (e.g. having an option to use cleaning on output data)
2016-01-19 12:21:38 +01:00
Goffi
9d9cc53b7d plugin XEP-0071: removed cleanXHTML use for sent message: it's not necessary in this direction 2016-01-19 12:08:38 +01:00
souliane
df30ea7a53 plugin XEP-0071, XEP-0277: method clean_xhtml has been renamed to cleanXHTML 2016-01-19 11:51:07 +01:00