Alexandre Aubin
74281816b4
Add subcategory stuff for the API to work
2017-07-23 16:16:10 -04:00
Alexandre Aubin
6a6fb89fd0
Dirty hack to be able to display 'actions' and 'subcategories' in different section in --help
2017-07-23 15:47:20 -04:00
Alexandre Aubin
4b27bf6e83
Correctly call actions inside subcategories
2017-07-23 09:34:32 -04:00
Alexandre Aubin
30d6b30569
Removing debug prints
2017-07-23 09:25:33 -04:00
Alexandre Aubin
c01cef3147
Adding actions to subcategory
2017-07-23 09:17:27 -04:00
Alexandre Aubin
f595c37a4a
Adding basic subcategory loop
2017-07-23 09:13:53 -04:00
Laurent Peuch
66111c9b8c
[mod] case never happen
2017-07-23 05:34:01 +02:00
Laurent Peuch
8d94e1aa43
[mod] simplify code again
2017-07-23 05:19:47 +02:00
Laurent Peuch
5194eb75c4
[doc] add more comments
2017-07-23 05:19:38 +02:00
Laurent Peuch
e65e6f5990
[mod] we always have actions
2017-07-23 04:46:01 +02:00
Laurent Peuch
2c368596e9
[mod] remove one indirection level
2017-07-23 04:44:13 +02:00
Laurent Peuch
1caa172072
[mod] renaming, make method name match reality and had a method for code readability
2017-07-23 04:16:12 +02:00
Laurent Peuch
79bb5b427f
[doc] add a comment to avoid looking at yet-another-file
2017-07-23 03:54:56 +02:00
Laurent Peuch
5f34437704
[mod] more renaming
2017-07-23 03:51:18 +02:00
Laurent Peuch
7853dda9fc
[mod] it's better to fail than to silencly ignore a typo
2017-07-23 03:50:39 +02:00
Laurent Peuch
4fde7dd2a4
[mod] style
2017-07-23 03:48:16 +02:00
Laurent Peuch
0ded786883
[mod] remove useless ()
2017-07-23 03:48:01 +02:00
Laurent Peuch
eed5cde8d2
[mod] remove useless exception
2017-07-23 03:47:52 +02:00
Laurent Peuch
a1395bdec6
[doc] add a comment from the docstring
2017-07-23 03:46:56 +02:00
Laurent Peuch
477d3721d1
[mod] more renaming
2017-07-23 03:46:41 +02:00
Laurent Peuch
70fdbd0188
[mod] remove conditions that are always True
2017-07-23 03:41:45 +02:00
Laurent Peuch
390b1ec17a
[mod] this is always true
2017-07-23 03:40:37 +02:00
Laurent Peuch
681bba9ee1
[mod] more renaming
2017-07-23 03:35:57 +02:00
Laurent Peuch
61eaec0d53
[doc] usefull comment
2017-07-23 03:35:51 +02:00
Laurent Peuch
179958797a
[mod] more renaming
2017-07-23 03:28:25 +02:00
Laurent Peuch
e138c3e377
[mod] more renaming and comments
2017-07-23 03:19:13 +02:00
Laurent Peuch
0f7d5d341d
[mod] more renaming
2017-07-23 03:17:01 +02:00
Laurent Peuch
be9b9c9b43
[doc] explicit comment
2017-07-23 03:16:57 +02:00
Laurent Peuch
1c8f387bae
[mod] more renaming
2017-07-23 03:15:12 +02:00
Laurent Peuch
e851c76d6e
[mod] remove debug print
2017-07-23 03:08:38 +02:00
Laurent Peuch
4fd3b962aa
[mod] renaming + comment
2017-07-23 03:08:24 +02:00
Laurent Peuch
173fa202ad
[mod] remove useless try/except
2017-07-23 02:54:52 +02:00
Laurent Peuch
4764dfbef3
[mod] autopep8
2017-07-22 12:02:52 +02:00
Alexandre Aubin
c9967372f1
[enh] More helpers for common IO operations ( #141 )
2017-07-21 21:05:46 -04:00
ljf
82cc617bec
[fix] Recursive mkdir was broken
2017-04-27 17:26:32 +02:00
Alexandre Aubin
e10a40657d
[fix] Show positional arguments first in --help / usage ( #138 )
...
* Show positional arguments first in --help / usage
* Updating reference link
* Adding annotations about diff/tweak with respect to original code
2017-04-02 23:11:57 +02:00
Alexandre Aubin
39891485c5
Use ordered dict for the actionmap cache ( #136 )
2017-03-18 02:54:15 +01:00
ljf
ca7c6e4eaf
[fix] Pep8
2017-02-08 16:06:52 +01:00
ljf
9bcee881eb
[fix] Recursive chmod was broken
2017-02-08 15:54:59 +01:00
Laurent Peuch
7f5e2e1b2d
[fix] hotfix another bug related to the logging/log conflict
2017-01-30 05:19:50 +01:00
Laurent Peuch
6c200ad9c9
[fix] hotfix for very obvious bug
2017-01-15 09:04:09 +01:00
ljf
8f28d152d1
[fix] Unused import in process is reference and used by yunohost script
2017-01-02 16:30:40 +01:00
Laurent Peuch
93961e9aae
[fix] log module was redifining constants thus breaking import
2017-01-02 03:53:15 +01:00
Laurent Peuch
23276c6941
[fix] don't circumway logging module
2016-12-22 13:26:11 +01:00
Laurent Peuch
f41eb29953
[fix] other modules were depending on "import *", urgh.
2016-12-22 13:00:05 +01:00
Laurent Peuch
f931976667
[mod] continue with pep8
2016-12-18 01:53:49 +01:00
Laurent Peuch
897ad08183
[mod] autopep8
2016-12-18 01:15:40 +01:00
Laurent Peuch
c0291ff479
Merge pull request #129 from YunoHost/remove_cli_timeout
...
Wait by default on cli
2016-12-15 19:44:30 +01:00
Laurent Peuch
d8313e84aa
[enh] don't timeout by default on cli
2016-12-15 13:23:15 +01:00
Laurent Peuch
8c4104bd90
[fix] edgy bug on slow hardware, especially on our (futur) CI
2016-12-07 22:08:34 +01:00
Laurent Peuch
f99b1e4152
[fix] forgot to add self to method signature
2016-12-03 00:27:20 +01:00
Laurent Peuch
f0541e570d
[fix] syntax error in python would avoid catching excepted exception
2016-12-03 00:01:27 +01:00
Laurent Peuch
ce07ad994b
Merge pull request #127 from YunoHost/increase_timeout
...
increase cli timeout
2016-12-02 23:56:48 +01:00
Laurent Peuch
54a50a40b9
[fix] at installation the cache dir might not be present
2016-11-29 20:36:13 +01:00
Laurent Peuch
efb481bda6
[mod] increase cli timeout
2016-11-25 16:25:57 +01:00
Laurent Peuch
0bb174905e
[mod] pep8
2016-11-16 03:29:28 +01:00
ljf
fbc7a63386
[enh] Use modification time to renew actionmap cache
2016-11-16 00:18:27 +01:00
Laurent Peuch
a642e0cd5b
[enh] automatically regenerate cache if actionmap.yml is modified
2016-06-24 01:08:17 +02:00
Jérôme Lebleu
a092370710
[enh] Catch unknown uid/gid in utils.filesystem.chown
2016-05-21 18:40:52 +02:00
Jérôme Lebleu
c92900edd8
[enh] Allow to define deprecated action
2016-04-16 21:26:29 +02:00
Jérôme Lebleu
802c39f117
[ref] Rename 'deprecated' action argument to 'deprecated_alias'
2016-04-16 21:04:09 +02:00
Jérôme Lebleu
a852861b2d
[enh] Sort result when pretty printing result from the cli
2016-04-16 20:03:17 +02:00
Jérôme Lebleu
346e5a164f
[enh] Allow to not output result from the cli
2016-04-16 20:02:01 +02:00
Jérôme Lebleu
6cfe67fb9c
[i18n] Use named variables in translations
2016-04-09 22:46:49 +02:00
Jérôme Lebleu
46e6e4dc7a
[enh] Allow to define deprecated action names
2016-04-09 19:33:57 +02:00
Laurent Peuch
c04f723ac2
[mod] make cli color endling more usable and DRY
2016-03-28 20:14:20 +02:00
Jérôme Lebleu
add073d855
[enh] Check for stale lock file
2016-03-13 19:04:34 +01:00
Jérôme Lebleu
d2a47a0dba
[fix] Set authenticate handler if password is given (bugfix #228 )
2016-02-28 10:49:19 +01:00
Jérôme Lebleu
929d96fd93
[fix] Create parents directories with proper permissions in mkdir util
2016-01-04 21:56:30 +01:00
Jérôme Lebleu
db924ea911
[enh] Allow to pass the password as argument in the cli
2015-12-24 10:34:46 +01:00
Jérôme Lebleu
79a10628a4
[fix] Log exception too if a key cannot be translated
2015-12-24 10:31:40 +01:00
Jérôme Lebleu
cbc64af4a5
[fix] Use given namespace in cli/api helpers for logging
2015-12-17 21:43:43 +01:00
Jérôme Lebleu
152f5a3919
[enh] Enhance stream utils with callback and use it in call_async_output
2015-11-15 15:23:32 +01:00
Jérôme Lebleu
98f80e30ba
[fix] Update call_async_output to make use of start_async_file_reading
2015-11-15 01:19:22 +01:00
Jérôme Lebleu
2be9da941f
[ref] Use a new asynchronous file reader helper
2015-11-14 21:59:38 +01:00
Jérôme Lebleu
4cf898d9c7
[enh] Allow to use a formatter and improve tty check in TTYHandler
2015-11-14 19:14:45 +01:00
Jérôme Lebleu
0b8b51d306
[enh] Output to stderr if level >= WARNING in TTYHandler
2015-11-14 18:46:54 +01:00
Jérôme Lebleu
4bcde06a79
[fix] Add current action id instead of logger's one
2015-11-13 21:44:34 +01:00
Jérôme Lebleu
ea7e9f1da1
[fix] Correct global object name
2015-11-13 21:41:17 +01:00
Jérôme Lebleu
f3dff47240
[enh] Catch exceptions and return code in api function helper
2015-11-13 21:40:28 +01:00
Jérôme Lebleu
f4853f2f4f
[enh] Implement logging handler and queues for the API
2015-11-13 18:12:38 +01:00
Jérôme Lebleu
349c03321d
[enh] Add auto-completion support in the cli
2015-11-13 13:04:27 +01:00
Jérôme Lebleu
2e83d9d1ff
[enh] Replace print_* arguments by output_as in the cli
2015-11-13 11:56:14 +01:00
Jérôme Lebleu
013447bbe7
[enh] Allow to define global abstract arguments in the cli
2015-11-13 11:53:31 +01:00
Jérôme Lebleu
28db3c5d37
[enh] Use logger in cli helper when MoulinetteError is raised
2015-11-12 22:53:33 +01:00
Jérôme Lebleu
9f7dd9c7ad
[enh] Provide new logging facilities to get rid of msignals.display
2015-11-12 22:36:41 +01:00
Jérôme Lebleu
3d589b59d7
[fix] Prevent malformed translation issue
2015-10-05 14:57:58 +02:00
Jérôme Lebleu
a4a9e8562d
[enh] Add a chmod function in utils.filesystem
2015-10-05 14:55:55 +02:00
Jérôme Lebleu
f5f3017114
[enh] Add a filesystem utils closed to some coreutils commands
2015-10-02 20:29:55 +02:00
Jérôme Lebleu
d7efe127a8
[enh] Allow to print output in a script-usable way for the cli
2015-09-29 14:20:08 +02:00
Jérôme Lebleu
4621d51c41
[fix] Missing os import
2015-07-18 17:11:06 +02:00
Jérôme Lebleu
ddb66076d4
[fix] Properly disconnect from LDAP
2015-07-18 16:28:48 +02:00
Jérôme Lebleu
927bba777f
[ref] Move random_ascii to text utils
2015-07-13 17:44:13 +02:00
Jérôme Lebleu
10c3bee1e1
[enh] Add a new callback action and start to normalize parsing
2015-07-13 17:44:13 +02:00
Jérôme Lebleu
8afa2dbe81
[enh] Add a process module to the utils
2015-01-11 15:56:10 +01:00
Jérôme Lebleu
f8f8bfca79
[enh] Add prependlines method to text formatting utils
2015-01-11 15:49:27 +01:00
Jérôme Lebleu
df5cd5ad7f
[fix] Allow number in argument name and fix variable name in actionsmap
2015-01-08 18:21:24 +01:00
Jérôme Lebleu
6c726f3c2f
[enh] Add text utils with searching helpers
2015-01-04 14:27:04 +01:00
Jérôme Lebleu
ac75505897
[fix] Move helpers.py to utils folder
2014-12-29 18:38:06 +01:00
Jérôme Lebleu
5d92898ee7
[enh] Implement an extended JSON encoder and support sets
2014-12-04 23:34:53 +01:00
Jérôme Lebleu
ab6d8c529f
[fix] Do not translate authenticator's help message in MoulinetteSignals
2014-11-21 11:06:29 +01:00
Jérôme Lebleu
cbdaeadefb
[fix] Append proper value to arg_strings for a list in the api
2014-11-21 10:32:38 +01:00
Jérôme Lebleu
7a6fda1e26
[enh] Support list arguments from HTTP requests in the api
2014-11-21 10:07:06 +01:00
Jérôme Lebleu
c264d2448f
[fix] Load namespace translations when cache is generated
2014-11-17 15:45:34 +01:00
Jérôme Lebleu
d840d11427
[enh] Manage several namespaces in Moulinette18n
2014-11-17 15:30:55 +01:00
Jérôme Lebleu
1b0aa97cd7
[enh] Be more verbose in modules using new logging facilities
2014-10-25 13:51:17 +02:00
Jérôme Lebleu
c93ecbd900
[enh] Implement logging facilities and initialize it ( fix #112 )
2014-10-25 13:51:16 +02:00
Jérôme Lebleu
f2737ce47d
[enh] Handle error message style from the cli
2014-10-13 17:14:33 +02:00
Jérôme Lebleu
a7249aee2d
[fix] Check password decryption and return the data without conversion
2014-10-01 21:19:47 +02:00
Jérôme Lebleu
19b28d43d0
[fix] Catch error while closing stream in NonBlockingStreamReader
2014-07-28 22:04:09 +02:00
Jérôme Lebleu
56c1cfec06
[enh] Add a non-blocking stream reader class to helpers
2014-07-28 14:02:42 +02:00
Jérôme Lebleu
d5f4a287ab
[clean] Remove uneeded old helpers
2014-07-28 13:58:07 +02:00
Jérôme Lebleu
fbc5f87f0a
[fix] Keep actions map arguments's order on parsing
2014-06-16 12:55:55 +02:00
Jérôme Lebleu
5351405f1c
[fix] Do not install /messages route if WebSocket is disabled
2014-06-12 16:19:43 +02:00
Jérôme Lebleu
27c2c240d1
[enh] Prepend a message with argument name on check pattern failure
2014-06-07 14:32:51 +02:00
Jérôme Lebleu
5d12977f10
[fix] Use a copy of extra_args to prevent to break EVERYTHING in the api
2014-06-07 14:12:04 +02:00
Jérôme Lebleu
dc3657fcae
[fix] Wrong errno name in the api
2014-06-06 14:55:55 +02:00
Jérôme Lebleu
e52a4085af
[fix] Enable autojson in Bottle app to encode additional routes result
2014-06-06 14:33:14 +02:00
Jérôme Lebleu
804752df3e
[enh] Set proper HTTP status code depending on the request result
2014-06-06 14:21:55 +02:00
Jérôme Lebleu
94db1ace38
[fix] Do not fail if no namespace is loaded for translations
2014-06-03 14:24:27 +02:00
Jérôme Lebleu
6842d726cc
[fix] Retrieve authenticator help translation at a better better place
2014-06-03 14:14:16 +02:00
Jérôme Lebleu
99faa506b4
[fix] Retrieve authenticator help translation at a better place
2014-06-02 23:19:07 +02:00
Jérôme Lebleu
8f486d9b65
[fix] Do not append empty argument on extra argument parsing
2014-06-02 23:07:57 +02:00
Jérôme Lebleu
594a1a3c32
[enh] Better confirmation prompting
2014-06-02 21:03:08 +02:00
Jérôme Lebleu
7145039e89
[fix] Encode translated string before formating it
2014-06-02 20:48:34 +02:00
Jérôme Lebleu
1a313a792c
[enh] Allow unicode pattern matching in 'pattern' extra parameter
2014-06-02 20:22:55 +02:00
Jérôme Lebleu
735ca3af87
[i18n] Allow translation of some parameters in the action map
2014-06-02 20:18:19 +02:00
Jérôme Lebleu
2243d3ce60
[enh] Display prompting message in yellow on authentication
2014-06-02 17:11:32 +02:00
Jérôme Lebleu
203c8fb511
[enh] Manage extra parameters inside the parser to add 'required' parameter
2014-06-02 17:07:05 +02:00
Jérôme Lebleu
790eaf0783
[fix] Print message inside prompting function in the cli
2014-06-02 15:04:07 +02:00
Jérôme Lebleu
66ed5dfd8d
[fix] Review pretty_print_dict to prevent encoding issue
2014-05-31 12:54:01 +02:00
Jérôme Lebleu
90bd495096
[enh] Manage arguments in translation - and try to fix encoding (again)
2014-05-30 18:52:13 +02:00
Jérôme Lebleu
dbc2776b94
[fix] Print unicode string to prevent encoding issue
2014-05-30 15:25:24 +02:00
Jérôme Lebleu
1ab91440f1
[fix] Fix encoding issue due to Python 2 in i18n and cli prompting
2014-05-29 14:55:06 +02:00
Jérôme Lebleu
9e4b266a5a
[fix] Add missing string in translations
2014-05-28 21:17:55 +02:00
Jérôme Lebleu
026745a135
[fix] Raise when a WebSocket request is expected
2014-05-26 16:06:22 +02:00
Jérôme Lebleu
6a989e655a
[fix] Always set locale to use for a request in the api
2014-05-26 12:19:25 +02:00
Jérôme Lebleu
f8c58b308a
[enh] Introduce quickly moulinette settings and store interface
2014-05-25 21:42:39 +02:00
Jérôme Lebleu
f86cec3458
[fix] Close WebSocket on action ended to prevent unclosed and lost socket
2014-05-25 01:30:33 +02:00
kload
1bc6308b3a
[fix] Display colorized messages correctly outside a tty
2014-05-24 19:23:56 +00:00
Jérôme Lebleu
282ae99cab
[fix] Display messages in real-time in the api
2014-05-21 21:18:01 +02:00
Jérôme Lebleu
25e1ed86d7
[enh] Use a WebSocket stream to display messages in the api
2014-05-19 17:21:40 +02:00
Jérôme Lebleu
abb1517a74
[enh] Allow multiple api routes for an action
2014-05-19 12:49:12 +02:00
Jérôme Lebleu
f2fed4a8b5
[fix] Prevent freeze in the cli if it's not running from a tty
2014-05-17 22:03:52 +02:00
Jérôme Lebleu
a205c04876
[enh] Allow to encode printed result in json from the cli
2014-05-17 21:45:44 +02:00
Jérôme Lebleu
c781d10b54
[enh] Catch error when LDAP server is down
2014-05-17 02:09:55 +02:00
Jérôme Lebleu
dcdc4cff8e
[fix] Proper handling locale in api and cli
2014-05-16 23:49:53 +02:00
Jérôme Lebleu
d7f2151d78
[fix] Allow anything in notimplemented function for signals
2014-05-16 23:34:23 +02:00
Jérôme Lebleu
0a07acfcf2
[fix] Return a string on log in/out in the api for json encoding
2014-05-16 23:11:09 +02:00
Jérôme Lebleu
1e84edbd7f
[fix] Correct ActionsMapParser and empty value in the api
2014-05-16 22:57:37 +02:00
Jérôme Lebleu
054dfeab7a
[fix] Use list for skipped_iface in extra arguments
2014-05-16 22:14:26 +02:00
Jérôme Lebleu
f4a32eea9c
[clean] Remove generated package.py
2014-05-16 20:04:11 +02:00
Jérôme Lebleu
c32ecf2942
[enh] Retrieve and set locale in the api
2014-05-16 19:59:06 +02:00
Jérôme Lebleu
acc7000977
[enh] Return data at log in/out
2014-05-16 19:51:56 +02:00
Jérôme Lebleu
95d2e0c54f
[fix] Return utf-8 encoded strings in Translator
2014-05-16 18:32:54 +02:00
Jérôme Lebleu
4e2f2853d2
[enh] Add a yolo setup.py
2014-05-16 15:35:16 +02:00
Jérôme Lebleu
d40055cbda
[fix] Temporarily hard fix non-authentication to 'default' in the api
2014-05-16 12:35:44 +02:00
Jérôme Lebleu
b501e186be
[fix] Add i18n in yunohost binaries and update them
2014-05-16 12:29:41 +02:00
Jérôme Lebleu
24cbd03d47
[enh] Add i18n \o/ 👏
2014-05-15 01:00:43 +02:00
root
8bdb79cfba
Fix error message which can make crazy
2014-05-13 01:40:52 +02:00
kload
906a416f59
[fix] Do not match pattern against empty value
2014-04-24 12:05:12 +00:00
kload
962b78329f
[enh] Adapt yunohost_hook.py and allow bypass of the locking process
2014-04-24 11:35:18 +00:00
Jerome Lebleu
447748175e
Update LDAP search operation
2014-03-27 02:59:40 +01:00
Jerome Lebleu
183ed78dc4
Move signals into moulinette core and uptade interfaces
...
* Replace ActionsMapSignals to MoulinetteSignals and make it available through 'msignal' global variable
* Update interfaces to support signals changes
* Add a new signal 'display' and implement it in the cli
2014-03-27 02:48:35 +01:00
Jerome Lebleu
13213025a1
Add built-in types support for 'type' argument in the actions map
2014-03-26 23:34:19 +01:00
Jerome Lebleu
7258e21adb
Move src/moulinette to the root
2014-03-26 01:50:14 +01:00