mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-28 13:44:14 -04:00
more config improvements, move away from settings GLOBALS to getters
This commit is contained in:
parent
b9492f7736
commit
9e40dd69a4
8 changed files with 34 additions and 38 deletions
|
@ -14,11 +14,8 @@ from pydantic_pkgr import (
|
|||
EnvProvider,
|
||||
)
|
||||
|
||||
from archivebox.config import CONSTANTS
|
||||
from archivebox.config.permissions import ARCHIVEBOX_USER
|
||||
|
||||
import abx
|
||||
|
||||
|
||||
class BaseBinProvider(BinProvider):
|
||||
|
||||
|
@ -29,10 +26,6 @@ class BaseBinProvider(BinProvider):
|
|||
# e.g. /admin/environment/binproviders/NpmBinProvider/ TODO
|
||||
return "/admin/environment/binaries/"
|
||||
|
||||
@abx.hookimpl
|
||||
def get_BINPROVIDERS(self):
|
||||
return [self]
|
||||
|
||||
class BaseBinary(Binary):
|
||||
|
||||
@staticmethod
|
||||
|
@ -96,10 +89,6 @@ class BaseBinary(Binary):
|
|||
# e.g. /admin/environment/config/LdapConfig/
|
||||
return f"/admin/environment/binaries/{self.name}/"
|
||||
|
||||
@abx.hookimpl
|
||||
def get_BINARIES(self):
|
||||
return [self]
|
||||
|
||||
|
||||
class AptBinProvider(AptProvider, BaseBinProvider):
|
||||
name: BinProviderName = "apt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue