Commit graph

207 commits

Author SHA1 Message Date
axolotle
1c7d427be0 form: remove hooks from Option's attrs 2023-04-19 20:27:17 +02:00
axolotle
fe2761da4a configpanel: fix choices 2023-04-19 20:27:17 +02:00
axolotle
c439c47d67 form: restrict filter to AppOption 2023-04-19 20:27:17 +02:00
axolotle
f0f89d8f2a form: restrict choices to select, tags, domain, app, user + group 2023-04-19 20:27:17 +02:00
axolotle
07636fe21e form: rename text_cli_* to _get_prompt_message + message 2023-04-19 20:27:17 +02:00
axolotle
9e8e0497dd form: fix readonly prompting + + choices + tests 2023-04-19 20:27:17 +02:00
axolotle
4261317e49 form: separate BaseOption into BaseReadonlyOption + BaseInputOption 2023-04-19 20:27:17 +02:00
axolotle
91497afbfe form: move option asking+prompt in external function 2023-04-19 20:27:17 +02:00
axolotle
fe5c73b4ed form+configpanel: sort imports 2023-04-19 20:27:17 +02:00
axolotle
ba32078180 configpanel: rename data methods 2023-04-19 20:27:17 +02:00
axolotle
67687b7cff configpanel: reorder ConfigPanel methods 2023-04-19 20:27:17 +02:00
axolotle
dc99febe4c form: add fancy separators 2023-04-19 20:27:17 +02:00
axolotle
e4a0ad35ce form: reorder Option methods 2023-04-19 20:27:17 +02:00
axolotle
5f4c83a4eb form: rename _prevalidate() to _value_pre_validator() + _post_parse_value() to _value_post_validator() 2023-04-19 20:27:17 +02:00
axolotle
9c238f00c3 form: reorder Options 2023-04-19 20:27:17 +02:00
axolotle
5351698230 form: rename ARGUMENTS_TYPE_PARSERS to OPTIONS 2023-04-19 20:27:17 +02:00
axolotle
f9fd379997 form: rename Questions to Options 2023-04-19 20:27:17 +02:00
Alexandre Aubin
b489d8bd99
Merge pull request #1637 from YunoHost/enh-perms-declaration
Support variables in permissions declaration
2023-04-11 13:58:19 +02:00
Alexandre Aubin
8ca756dbd3 appsv2: simplify code to hydrate url/additional_urls with app settings 2023-04-11 13:57:50 +02:00
Alexandre Aubin
f9deb1d835
Merge pull request #1636 from YunoHost/ci-format-debian/11.1.17
[CI] Format code with Black
2023-04-11 13:38:19 +02:00
Alexandre Aubin
aa43e6c22b appsv2: fix edge-case when validating packager-provided infos for permissions resource 2023-04-10 14:34:10 +02:00
tituspijean
fa26574b51
Ooops 2023-04-06 23:32:46 +02:00
tituspijean
a66fccbd5b
Support variables in permissions declaration 2023-04-06 23:21:57 +02:00
yunohost-bot
58cd08e60d [CI] Format code with Black 2023-04-05 15:32:22 +00:00
Alexandre Aubin
9a4267ffa4 appsv2: for the dir/subdirs of data_dir, create parent folders if they don't exist 2023-04-05 15:58:26 +02:00
axolotle
bee218e560 fix configpanel.py and form.py imports 2023-04-04 16:05:36 +02:00
axolotle
f79cfcc067 Merge branches 'split-config-form' and 'split-config-cp' into split-config 2023-04-04 15:55:08 +02:00
axolotle
b688944d11 remove form related code from configpanel.py 2023-04-04 15:54:28 +02:00
axolotle
478291766e mv config.py to configpanel.py 2023-04-04 15:51:55 +02:00
axolotle
d8cb2139a9 remove ConfigPanel code from form.py 2023-04-04 15:50:56 +02:00
axolotle
9c6a7fdf04 mv config.py to form.py 2023-04-04 15:43:46 +02:00
Alexandre Aubin
17e0a11547
Merge pull request #1629 from YunoHost/tests-cp
[tests] Rework questions/options tests
2023-04-04 13:01:35 +02:00
Alexandre Aubin
b5f3662627
Misc syntax 2023-04-04 13:01:25 +02:00
yunohost-bot
4e799bfbc3 [CI] Format code with Black 2023-04-02 18:52:32 +00:00
Alexandre Aubin
4b46f32201 appv2: add support for subdirs property in data_dir 2023-03-31 20:26:08 +02:00
Alexandre Aubin
306c5e0e10 app resources: add documentation about latest_github_commit strategy for source autoupdate + autoupdate.upstream 2023-03-31 20:11:25 +02:00
Alexandre Aubin
63981aacf9 appsv2: Add documentation about the new 'autoupdate' mechanism for app sources 2023-03-27 20:34:49 +02:00
axolotle
2d03176c7f fix i18n panel+section names 2023-03-22 15:37:39 +01:00
axolotle
f8c1e7c168 options: misc option quick fixes 2023-03-22 14:20:50 +01:00
Alexandre Aubin
b2596f3287 appsv2: add validation for expected types for permissions stuff 2023-03-14 19:23:24 +01:00
yunohost-bot
98c7b60311 [CI] Format code with Black 2023-03-09 16:19:40 +00:00
Alexandre Aubin
738d0679da
Merge pull request #1615 from YunoHost/sources_toml
helpers: add support for a 'sources' app resources to modernize and replace app.src format
2023-03-09 15:20:06 +01:00
Alexandre Aubin
0d524220e5 appsv2/sources: i18n 2023-03-08 16:44:52 +01:00
Alexandre Aubin
ebc9e645fc
Typo
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2023-03-08 16:23:58 +01:00
Alexandre Aubin
acb359bdbf Forgot to remove pdb D: 2023-03-06 20:15:20 +01:00
Alexandre Aubin
0a937ab0bd Unecessary pass statement 2023-03-06 20:06:11 +01:00
Alexandre Aubin
4102d626e5 appsv2/sources: change 'sources.toml' to a new 'sources' app resource instead 2023-03-06 19:57:12 +01:00
Kay0u
030d876329
trying to fix _port_is_used 2023-03-02 18:40:56 +01:00
yunohost-bot
76ff5b1844 [CI] Format code with Black 2023-03-01 00:47:18 +00:00
tituspijean
8701d8ec62
Handle undefined main permission url 2023-02-28 22:58:17 +01:00