Commit graph

50 commits

Author SHA1 Message Date
yunohost-bot
a2f82aba12 [CI] Format code with Black 2022-10-27 16:00:06 +00:00
Félix Piédallu
f952c4bcf7 domain_info: Some apps don't have path (non-web apps like synapse/borg), it triggers a KeyError. 2022-10-26 20:45:49 +02:00
yunohost-bot
7c05df05b7 [CI] Format code with Black 2022-10-24 16:59:10 +00:00
Alexandre Aubin
aaa3a901d0 domain: don't assert domain exists in _get_parent_domain_of 2022-10-10 16:47:45 +02:00
Alexandre Aubin
bd7081baf2 maintenance: cleanup .py file headers + automate boring copyright headers... 2022-10-09 18:38:34 +02:00
Alexandre Aubin
f03b992c6a Friskies 2022-10-09 18:03:18 +02:00
Alexandre Aubin
a355f48580 domains: simplify domain config panel cert section 2022-10-08 19:21:36 +02:00
Alexandre Aubin
43b7a1a9a0
Merge pull request #1514 from YunoHost/get-parent
call _get_parent_domain_of to ensure getting any level parent
2022-10-07 17:03:18 +02:00
axolotle
5cfbcd4c49 domaindns: update _get_parent_domain_of defaults and calls to 2022-10-07 18:08:25 +02:00
Alexandre Aubin
ef742124ea
Merge pull request #1434 from YunoHost/enh-domains
Ability to "list" domain as a tree structure, + add a new domain_info endpoint
2022-10-07 15:25:51 +02:00
Alexandre Aubin
b30962a44f domain_info: add 'topest_parent' info + fix small bug with return_self option for _get_parent_domain_of 2022-10-07 15:07:48 +02:00
Alexandre Aubin
73a7f93740 domains: make the domain cache expire after 15 seconds to prevent inconsistencies between CLI and API 2022-10-07 14:19:15 +02:00
Alexandre Aubin
23b83b5ef7 Unused import 2022-10-07 13:59:54 +02:00
Alexandre Aubin
96233ea600 Rework domain_info 2022-10-05 15:07:03 +02:00
axolotle
81b90d79cb remove previous _get_parent_domain_of() 2022-10-05 16:14:07 +02:00
axolotle
7b7c5f0b13 changed cert acme status to a string to add 'unknown' status (when not diagnosed) 2022-10-05 16:14:07 +02:00
axolotle
d848837bc6 add new domain_info() command to get a domain's dns, certs and apps infos 2022-10-05 16:14:07 +02:00
axolotle
77471c4140 add tree option on domain_list() 2022-10-05 16:14:07 +02:00
axolotle
6001b0f7af rework domains cache logic 2022-10-05 16:14:07 +02:00
Alexandre Aubin
e2838455e0 Moar i18n friskies 2022-10-05 14:18:21 +02:00
Alexandre Aubin
d1d203726b Merge remote-tracking branch 'origin/enh-actions' into 11.1 2022-10-04 22:33:28 +02:00
Alexandre Aubin
1c06fd5017 configpanels: i18n for domain cert config panel 2022-10-04 17:29:54 +02:00
Alexandre Aubin
85b6d8554d Fix i18n issues / also we don't need operation logger for domain_action_run, already handled in subcalls 2022-10-04 13:04:30 +02:00
Alexandre Aubin
0dc08c8f8c Apply suggestions from code review
Co-authored-by: Axolotle <nchesnais@mailoo.org>
2022-09-30 15:03:03 +02:00
Alexandre Aubin
40ad8ce25e configpanel: Implement 'hidden' domain_action_run route 2022-09-30 15:03:03 +02:00
Alexandre Aubin
47543b19b7 configpanels: Iterating on action POC to create a certificat section in domain config panels 2022-09-30 15:03:03 +02:00
Alexandre Aubin
38234c9501
Merge branch 'dev' into enh-global-settings-configpanel 2022-09-03 22:33:46 +02:00
Alexandre Aubin
efe0e60182 [fix] defaultapp: domain may not exist in app_map dict output 2022-08-28 17:25:31 +02:00
Alexandre Aubin
76238db4bb config_settings.toml -> config_global.toml 2022-08-04 19:09:47 +02:00
Alexandre Aubin
97e17bbddb
Merge pull request #1424 from YunoHost/ci-format-dev
[CI] Format code with Black
2022-01-29 19:13:33 +01:00
Alexandre Aubin
0a59f86329 configpanel: oopsies, super()._apply() was only called when changing the default app :P 2022-01-29 19:10:28 +01:00
yunohost-bot
e1ffe57282 [CI] Format code with Black 2022-01-29 17:48:05 +00:00
Alexandre Aubin
adb0e67b25 Aaand hasattr not working as expected 2022-01-29 18:28:07 +01:00
Alexandre Aubin
e46fe6b77b Typo: self.hasattr is not a thing /o\ 2022-01-29 18:05:23 +01:00
Alexandre Aubin
7377798385 Revert "Tmp fix to try to debug the CI @_@"
This reverts commit 3ca302b85d.
2022-01-29 17:50:03 +01:00
Alexandre Aubin
74e73c470f Revert "Moar tmp tweaks to try to debug the CI"
This reverts commit 16946372cc.
2022-01-29 17:49:59 +01:00
Alexandre Aubin
bf6252ac1d configpanels: optimize _get_toml for domains to not load the whole DNS section stuff when just getting a simple info from another section 2022-01-29 17:49:45 +01:00
Alexandre Aubin
16946372cc Moar tmp tweaks to try to debug the CI 2022-01-29 17:18:24 +01:00
Alexandre Aubin
3ca302b85d Tmp fix to try to debug the CI @_@ 2022-01-29 16:54:27 +01:00
Alexandre Aubin
4b78e8e327 [mod] certificate: drop unused 'staging' LE mode 2022-01-26 14:29:04 +01:00
yunohost-bot
71e73c7cf2 [CI] Format code with Black 2022-01-24 18:16:08 +00:00
Alexandre Aubin
8836fdeeaa Merge branch 'dev' into enh-domain-default-app 2022-01-24 18:40:10 +01:00
yunohost-bot
b9060da750 [CI] Format code with Black 2022-01-20 18:43:33 +00:00
Tagada
30983a4efd [enh] Manage default applications with DomainConfigPanel
[enh] makedefault with domain_config_set()

[enh] Allow webadmin to reverse makedefault

[legacy] translate legacy redirections to new domain config
2022-01-19 23:04:24 +00:00
Alexandre Aubin
b1fe61ed68 codequality: fstring all the things! (well, not all but a lot :P) 2022-01-11 21:37:21 +01:00
Alexandre Aubin
ea6500ebfd ldap: having to repeat the base dn everytime we call search() is boring and inconsistent with other methods, let's use relative dns instead 2022-01-11 17:10:07 +01:00
Alexandre Aubin
26b837b085 Merge branch 'dev' into bullseye 2022-01-07 02:54:55 +01:00
Kay0u
fc0cf79123
Merge branch 'dev' into bullseye 2021-12-30 15:29:16 +01:00
Alexandre Aubin
05f25fa85f Propagate dir structure change to scripts etc 2021-11-10 18:25:37 +01:00
Alexandre Aubin
5de9e4fe6a Yolorework the repo dir structure 2021-11-10 17:56:02 +01:00
Renamed from src/yunohost/domain.py (Browse further)