2019-04-17 07:49:18 +00:00
|
|
|
__package__ = 'archivebox.core'
|
2024-01-24 18:18:02 +00:00
|
|
|
|
2024-10-28 11:07:35 +00:00
|
|
|
import abx
|
|
|
|
|
|
|
|
@abx.hookimpl
|
|
|
|
def register_admin(admin_site):
|
|
|
|
"""Register the core.models views (Snapshot, ArchiveResult, Tag, etc.) with the admin site"""
|
|
|
|
from core.admin import register_admin
|
|
|
|
register_admin(admin_site)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@abx.hookimpl
|
|
|
|
def get_CONFIG():
|
|
|
|
from archivebox.config.common import (
|
|
|
|
SHELL_CONFIG,
|
|
|
|
STORAGE_CONFIG,
|
|
|
|
GENERAL_CONFIG,
|
|
|
|
SERVER_CONFIG,
|
|
|
|
ARCHIVING_CONFIG,
|
|
|
|
SEARCH_BACKEND_CONFIG,
|
|
|
|
)
|
|
|
|
return {
|
|
|
|
'SHELL_CONFIG': SHELL_CONFIG,
|
|
|
|
'STORAGE_CONFIG': STORAGE_CONFIG,
|
|
|
|
'GENERAL_CONFIG': GENERAL_CONFIG,
|
|
|
|
'SERVER_CONFIG': SERVER_CONFIG,
|
|
|
|
'ARCHIVING_CONFIG': ARCHIVING_CONFIG,
|
|
|
|
'SEARCHBACKEND_CONFIG': SEARCH_BACKEND_CONFIG,
|
|
|
|
}
|
|
|
|
|