Loading src/climax/__main__.py +4 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import shutil from functools import cache import socket from .eggs import get_yolk from .model import MaXProjectConfig, db, MaxInstall from .model import MaXProjectConfig, db, MaxInstall, DEFAULT_DOT_BASEX_FILE from .config import ( WELCOME_PAGE, USER_MAX_DIR, Loading Loading @@ -379,6 +379,9 @@ def _sync_max_instance(root_directory: Path, verbose=True): config.max_version.get("url"), ) with open(Path(root_directory, dot_max_dir, "basex", ".basex"), "w") as f: f.write(DEFAULT_DOT_BASEX_FILE) _sync_bundles(root_directory) if verbose: print( Loading src/climax/model.py +44 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,50 @@ CONFIG_INIT_TEMPLATE = """<?xml version="1.0" encoding="UTF-8"?> </configuration> """ DEFAULT_DOT_BASEX_FILE = """# General Options DEBUG = false DBPATH = .max/basex/data LOGPATH = .logs REPOPATH = .max/basex/repo LANG = English FAIRLOCK = false CACHETIMEOUT = 3600 WRITESTORE = true # Client/Server Architecture HOST = localhost PORT = 1984 SERVERPORT = 1984 USER = PASSWORD = SERVERHOST = PROXYHOST = PROXYPORT = 0 NONPROXYHOSTS = IGNORECERT = false TIMEOUT = 30 KEEPALIVE = 600 PARALLEL = 8 LOG = data LOGEXCLUDE = LOGCUT = LOGMSGMAXLEN = 1000 LOGTRACE = true # HTTP Services WEBPATH = .max/basex/webapp GZIP = false RESTPATH = RESTXQPATH = PARSERESTXQ = 3 RESTXQERRORS = true HTTPLOCAL = false STOPPORT = 8081 AUTHMETHOD = Basic # Local Options """ class MaXProjectConfig: def __init__(self, path_to_config_file: Union[str, Path]): Loading Loading
src/climax/__main__.py +4 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ import shutil from functools import cache import socket from .eggs import get_yolk from .model import MaXProjectConfig, db, MaxInstall from .model import MaXProjectConfig, db, MaxInstall, DEFAULT_DOT_BASEX_FILE from .config import ( WELCOME_PAGE, USER_MAX_DIR, Loading Loading @@ -379,6 +379,9 @@ def _sync_max_instance(root_directory: Path, verbose=True): config.max_version.get("url"), ) with open(Path(root_directory, dot_max_dir, "basex", ".basex"), "w") as f: f.write(DEFAULT_DOT_BASEX_FILE) _sync_bundles(root_directory) if verbose: print( Loading
src/climax/model.py +44 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,50 @@ CONFIG_INIT_TEMPLATE = """<?xml version="1.0" encoding="UTF-8"?> </configuration> """ DEFAULT_DOT_BASEX_FILE = """# General Options DEBUG = false DBPATH = .max/basex/data LOGPATH = .logs REPOPATH = .max/basex/repo LANG = English FAIRLOCK = false CACHETIMEOUT = 3600 WRITESTORE = true # Client/Server Architecture HOST = localhost PORT = 1984 SERVERPORT = 1984 USER = PASSWORD = SERVERHOST = PROXYHOST = PROXYPORT = 0 NONPROXYHOSTS = IGNORECERT = false TIMEOUT = 30 KEEPALIVE = 600 PARALLEL = 8 LOG = data LOGEXCLUDE = LOGCUT = LOGMSGMAXLEN = 1000 LOGTRACE = true # HTTP Services WEBPATH = .max/basex/webapp GZIP = false RESTPATH = RESTXQPATH = PARSERESTXQ = 3 RESTXQERRORS = true HTTPLOCAL = false STOPPORT = 8081 AUTHMETHOD = Basic # Local Options """ class MaXProjectConfig: def __init__(self, path_to_config_file: Union[str, Path]): Loading