PHP 8.2.30
Preview: mapping.py Size: 492 B
//opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/source/mapping.py

from ..config import Configuration
from .base import Source


__all__ = ("MappingSource",)


class MappingSource(Source):
    def __init__(self, target):
        super(MappingSource, self).__init__()
        self.target = target

    def get_config(self, settings, manager=None, parent=None):
        for setting in settings:
            if setting.name in self.target:
                setting.value = self.target[setting.name]

        return Configuration(settings=settings, parent=parent)

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
145 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.98 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
978 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1001 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.58 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
847 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
492 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.67 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
853 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
337 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).