apply black to the whole codebase.
This commit is contained in:
parent
420df3340d
commit
82e2c6efac
1 changed files with 175 additions and 448 deletions
|
|
@ -67,13 +67,11 @@ PLUGIN_INFO = {
|
|||
C.PI_MODES: C.PLUG_MODE_BOTH,
|
||||
C.PI_MAIN: "AppManager",
|
||||
C.PI_HANDLER: "no",
|
||||
C.PI_DESCRIPTION: _(
|
||||
"""Applications Manager
|
||||
C.PI_DESCRIPTION: _("""Applications Manager
|
||||
|
||||
Manage external applications using packagers, OS virtualization/containers or other
|
||||
software management tools.
|
||||
"""
|
||||
),
|
||||
"""),
|
||||
}
|
||||
|
||||
APP_FILE_PREFIX = "libervia_app_"
|
||||
|
|
@ -150,7 +148,7 @@ class AppManager:
|
|||
)
|
||||
data["_instance_dir_obj"].cleanup()
|
||||
|
||||
def _libervia_conf_constr(self, loader, node) -> str|None:
|
||||
def _libervia_conf_constr(self, loader, node) -> str | None:
|
||||
"""Get a value from Libervia configuration
|
||||
|
||||
A list is expected with either "name" of a config parameter, a one or more of
|
||||
|
|
@ -180,14 +178,16 @@ class AppManager:
|
|||
|
||||
try:
|
||||
if section.startswith("application."):
|
||||
key = section[12:].strip()
|
||||
key = section[12:].strip()
|
||||
if not key:
|
||||
raise ValueError("Invalid configuration section: {section!r}}")
|
||||
value = G.config.application.get(key, {}).get(name, default)
|
||||
else:
|
||||
value = getattr(getattr(G.config, section), name) or default
|
||||
except (AttributeError, KeyError):
|
||||
from pudb import set_trace; set_trace()
|
||||
from pudb import set_trace
|
||||
|
||||
set_trace()
|
||||
raise ValueError(
|
||||
f"Invalid configuration request: {section=}, {name=}, {default=}, "
|
||||
f"{filter=}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue