Commit graph

35 commits

Author SHA1 Message Date
axolotle
dbaea019fe form+config: replace _parse_pre_answered method with generic function 2023-10-22 15:28:14 +02:00
axolotle
80dbd6dac4 form: rework entities validators to avoid multiple calls to them 2023-10-22 15:21:21 +02:00
axolotle
02948ad49c config: rework config+settings getter methods 2023-10-22 15:19:32 +02:00
axolotle
bec34b92b0 form: add reserved "id" validator 2023-10-22 15:13:13 +02:00
axolotle
774b11cbbe form: add legacy "name" attr 2023-10-22 15:13:13 +02:00
axolotle
a574855a03 form: fix forbidden readonly type 2023-10-22 15:13:13 +02:00
axolotle
582b1ed311 form: add translating method 2023-10-22 15:13:13 +02:00
axolotle
ec5da99a79 form: rework pre + post options validators 2023-10-22 15:07:54 +02:00
axolotle
3943774811 form: add dynamic annotation getters 2023-10-22 15:07:52 +02:00
axolotle
89ae5e654d form: update asking flow, separate form and options 2023-10-22 15:06:51 +02:00
axolotle
f5c56db10e form: use pydantic BaseModel in Options and add some validators 2023-10-22 15:02:10 +02:00
Alexandre Aubin
9e87ea88df portal-api: improve semantic for yunohost public portal stuff 2023-09-27 19:30:55 +02:00
Alexandre Aubin
db30b3acb8
Merge branch 'bookworm' into portal-api 2023-09-27 18:57:02 +02:00
axolotle
5562b61db0 add 'list_portal' AppOption modifier to add portal as a possible choice 2023-09-04 16:20:29 +02:00
Alexandre Aubin
2ece3b65f6 Moulinette logging is an unecessarily complex mess, episode 57682 2023-07-18 00:19:16 +02:00
axolotle
4df7e4681d form: force option type to 'select' if there's 'choices' + add test 2023-04-30 17:15:40 +02:00
axolotle
c1f0ac04c7 rename Option.name to Option.id 2023-04-19 20:27:17 +02:00
axolotle
e87f8ef93a form: use Enum for Option's type 2023-04-19 20:27:17 +02:00
axolotle
1c7d427be0 form: remove hooks from Option's attrs 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
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
yunohost-bot
58cd08e60d [CI] Format code with Black 2023-04-05 15:32:22 +00: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
Renamed from src/utils/config.py (Browse further)