mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
Update base_configset.py
This commit is contained in:
parent
de09867f87
commit
9241a45bb8
1 changed files with 3 additions and 17 deletions
|
@ -204,24 +204,10 @@ class ArchiveBoxBaseConfig(BaseSettings):
|
||||||
class BaseConfigSet(ArchiveBoxBaseConfig, BaseHook): # type: ignore[type-arg]
|
class BaseConfigSet(ArchiveBoxBaseConfig, BaseHook): # type: ignore[type-arg]
|
||||||
hook_type: ClassVar[HookType] = 'CONFIG'
|
hook_type: ClassVar[HookType] = 'CONFIG'
|
||||||
|
|
||||||
# def register(self, settings, parent_plugin=None):
|
# @abx.hookimpl
|
||||||
# # self._plugin = parent_plugin # for debugging only, never rely on this!
|
|
||||||
|
|
||||||
# settings.FLAT_CONFIG = benedict(getattr(settings, "FLAT_CONFIG", {}))
|
|
||||||
# # pass FLAT_CONFIG so far into our config model to load it
|
|
||||||
# loaded_config = self
|
|
||||||
# # then dump our parsed config back into FLAT_CONFIG for the next plugin to use
|
|
||||||
# settings.FLAT_CONFIG.merge(loaded_config.model_dump(include=set(self.model_fields.keys())))
|
|
||||||
|
|
||||||
# settings.REGISTERED_CONFIGS = getattr(settings, "REGISTERED_CONFIGS", None) or benedict({})
|
|
||||||
# settings.REGISTERED_CONFIGS[self.id] = self
|
|
||||||
# self._original_id = id(self)
|
|
||||||
|
|
||||||
# super().register(settings, parent_plugin=parent_plugin)
|
|
||||||
|
|
||||||
# def ready(self, settings):
|
# def ready(self, settings):
|
||||||
# # reload config from environment, in case it's been changed by any other plugins
|
# # reload config from environment, in case it's been changed by any other plugins
|
||||||
# self.__init__()
|
# self.__init__()
|
||||||
|
|
||||||
|
|
||||||
@abx.hookimpl
|
@abx.hookimpl
|
||||||
|
|
Loading…
Add table
Reference in a new issue