$60 GRAYBYTE WORDPRESS FILE MANAGER $35

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf//manager.py
from copy import deepcopy

from .config import Configuration
from .setting import Setting
from .source.base import Source


__all__ = ("ConfigurationManager",)


class ConfigurationManager(object):
    def __init__(self, name):
        self.name = name
        self.settings = []

    def add(self, setting):
        if isinstance(setting, Setting):
            self.settings.append(setting)
        else:
            raise TypeError("Can only add objects of type Setting")

    def retrieve(self, *sources):
        to_process = []
        for source in reversed(sources):
            if isinstance(source, Source):
                to_process.append(source)
            elif isinstance(source, type) and issubclass(source, Source):
                to_process.append(source())
            else:
                raise TypeError("All sources must be a Source")

        config = Configuration(settings=self.settings)
        for source in to_process:
            config = source.get_config(
                deepcopy(self.settings), manager=self, parent=config
            )

        config.validate()

        return config

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
source
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0.184 KB
17 Apr 2025 8.10 PM
root / root
0644
config.py
2.29 KB
17 Apr 2025 8.10 PM
root / root
0644
datatype.py
3.033 KB
17 Apr 2025 8.10 PM
root / root
0644
exception.py
0.363 KB
17 Apr 2025 8.10 PM
root / root
0644
manager.py
1.096 KB
17 Apr 2025 8.10 PM
root / root
0644
setting.py
1.669 KB
17 Apr 2025 8.10 PM
root / root
0644
util.py
0.235 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF