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
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
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
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
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
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
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
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
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
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
souliane
aa1e0714dd
tools (strings): add method fixXHTMLLinks to add a scheme if missing, and force opening in new tab
2016-01-15 12:27:34 +01:00
souliane
e3144d93c2
jp (roster): change groups delimiter for "roster get" output, from "|" to "\t"
2016-01-13 22:10:06 +01:00
souliane
8471941dc7
jp (roster): add command "roster get" with parameters "--subscriptions", "--name" and "--groups"
2016-01-13 20:51:42 +01:00
souliane
988990f6f5
jp (roster stats): add some extra information
2016-01-13 19:46:43 +01:00
souliane
6a680d9ff8
jp (roster): add parameters "--no_from" and "--no_to" to command "roster purge" in order to remove the contacts with no from/to subscription
2016-01-13 19:26:09 +01:00
souliane
8a920d41c0
jp: add command "roster stats"
2016-01-13 18:54:58 +01:00
Goffi
bc371c5569
primivitus: Primivitus doesn't handle microblog yet, configure QuickApp accordingly
2016-01-13 18:55:30 +01:00
Goffi
e7d024784e
bridge (D-Bus): fixed handling of profile in kwargs:
...
kwargs are not handled by python D-Bus (i.e. they are not sent through D-Bus). The "profile" and "profile_key" kwargs are often used through SàT with the bridge, this was working so far because they were used for core methods (which have a signature in DBus.py handling profile), or in Libervia browser who ignore profile argument.
But if the profile or profile_key was used as a keyword for plugin method outside of Libervia browser, they were ignored, this commit fix this by adding them to the args list.
2016-01-13 18:44:32 +01:00
souliane
2f88a6ed08
jp: add command "roster purge" to remove the contacts with no from/to subscription
2016-01-13 18:15:20 +01:00
souliane
fab073076c
tools (strings): add a parameter "new_target" to addURLToText
2016-01-13 13:08:31 +01:00
souliane
923dcc593d
primitivus (chat): since dialog refresh is done in message notification, print the message first and then notify
2016-01-13 08:50:40 +01:00
souliane
f16e277e8f
quick_frontend, primitivus: mechanism to signal a new message reception when the window is hidden (even if the message is actually displayed):
...
- for now this is only used by Libervia
2016-01-12 17:54:38 +01:00
souliane
a08a073503
quick_frontend, primitivus (chat): move notification command to quick_frontend
2016-01-12 17:52:17 +01:00
Goffi
348be27934
copyright update
2016-01-03 16:28:30 +01:00
souliane
2a99e4bc38
quick_frontend (chat): temporary fix for bug 12:
...
- avoid duplicate one2one message (before the history + as a part of it)
- do not display "=> <nick> has joined the room" for each occupant when we have just joined a MUC
2015-12-22 11:44:51 +01:00
souliane
87bd260149
quick_frontend (chat): scroll down after having printed the history
2015-12-22 11:43:02 +01:00
souliane
f153fd885d
quick_frontend, primitivus (chat): printing the history is left to quick_frontend
2015-12-22 11:39:45 +01:00
Goffi
6c8121324c
quick_frontend (blog): replaced first argument in addEntry by edit_entry, so it can be managed separately from entries + handle it in Entry.delete
2015-12-18 19:36:00 +01:00
souliane
8aec15cecf
primitivus (chat): duplicate message check is actually not needed when retrieving local MUC history is disabled
2015-12-16 13:29:24 +01:00