Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
ipapython /
install /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
101
B
-rw-r--r--
2020-04-02 03:45
__init__.pyc
194
B
-rw-r--r--
2023-06-13 03:24
__init__.pyo
194
B
-rw-r--r--
2023-06-13 03:24
cli.py
11.92
KB
-rw-r--r--
2020-04-02 03:45
cli.pyc
9.96
KB
-rw-r--r--
2023-06-13 03:24
cli.pyo
9.96
KB
-rw-r--r--
2023-06-13 03:24
common.py
2.54
KB
-rw-r--r--
2020-04-02 03:45
common.pyc
5.08
KB
-rw-r--r--
2023-06-13 03:24
common.pyo
4.96
KB
-rw-r--r--
2023-06-13 03:24
core.py
17.64
KB
-rw-r--r--
2020-04-02 03:45
core.pyc
21.14
KB
-rw-r--r--
2023-06-13 03:24
core.pyo
20.62
KB
-rw-r--r--
2023-06-13 03:24
typing.py
790
B
-rw-r--r--
2020-04-02 03:45
typing.pyc
1.39
KB
-rw-r--r--
2023-06-13 03:24
typing.pyo
1.39
KB
-rw-r--r--
2023-06-13 03:24
util.py
4.21
KB
-rw-r--r--
2020-04-02 03:45
util.pyc
4.39
KB
-rw-r--r--
2023-06-13 03:24
util.pyo
4.25
KB
-rw-r--r--
2023-06-13 03:24
Save
Rename
# # Copyright (C) 2015 FreeIPA Contributors see COPYING for license # """ Common stuff. """ import logging from . import core from .util import from_ __all__ = ['step', 'Installable', 'Interactive', 'installer', 'uninstaller'] logger = logging.getLogger(__name__) def step(): def decorator(func): cls = core.Component(Step) cls._installer = staticmethod(func) return cls return decorator class Installable(core.Configurable): """ Configurable which does install or uninstall. """ uninstalling = core.Property(False) def _get_components(self): components = super(Installable, self)._get_components() if self.uninstalling: # pylint: disable=using-constant-test components = reversed(list(components)) return components def _configure(self): if self.uninstalling: # pylint: disable=using-constant-test return self._uninstall() else: return self._install() def _install(self): assert not hasattr(super(Installable, self), '_install') return super(Installable, self)._configure() def _uninstall(self): assert not hasattr(super(Installable, self), '_uninstall') return super(Installable, self)._configure() class Step(Installable): @property def parent(self): raise AttributeError('parent') def _install(self): for unused in self._installer(self.parent): yield from_(super(Step, self)._install()) @staticmethod def _installer(obj): yield def _uninstall(self): for unused in self._uninstaller(self.parent): yield from_(super(Step, self)._uninstall()) @staticmethod def _uninstaller(obj): yield @classmethod def uninstaller(cls, func): cls._uninstaller = staticmethod(func) return cls class Interactive(core.Configurable): interactive = core.Property(False) def installer(cls): class Installer(cls, Installable): def __init__(self, **kwargs): super(Installer, self).__init__(uninstalling=False, **kwargs) Installer.__name__ = 'installer({0})'.format(cls.__name__) return Installer def uninstaller(cls): class Uninstaller(cls, Installable): def __init__(self, **kwargs): super(Uninstaller, self).__init__(uninstalling=True, **kwargs) Uninstaller.__name__ = 'uninstaller({0})'.format(cls.__name__) return Uninstaller