Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

SystemConfig. Choose the way to store objects configuration #6

Open
uselessvevo opened this issue Sep 6, 2021 · 0 comments
Open

SystemConfig. Choose the way to store objects configuration #6

uselessvevo opened this issue Sep 6, 2021 · 0 comments
Assignees
Labels
core Core/architecture issue enhancement New feature or request

Comments

@uselessvevo
Copy link
Owner

There is two ways to implement this: the first one by using really questionable decorators for classes like dataclasses; the second way is to use bson instead of json with additional utilities to pack and unpack data.

Drafts:

@configuration(section="system", required=True, variables=False)
class ManagersInitOrder:
    order: list = [
        "toolkit.managers.assets.AssetsManager",
        "toolkit.managers.apps.AppConfigManager",
        "toolkit.managers.translation.TranslationManager"
    ]


@configuration(section="assets", required=True, protected=["shared"])
class AssetsManagerConfiguration:
    folder: PathLike = "assets"
    file_formats: list = ["jpg", "jpeg", "png", "svg"]
@uselessvevo uselessvevo self-assigned this Sep 6, 2021
@uselessvevo uselessvevo added enhancement New feature or request core Core/architecture issue labels Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core Core/architecture issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant