Move relations component loading into app.py. Move test rendering functions to test/sxc/pages/__init__.py, update route imports, and delete both sx_components.py files. Zero sx_components imports remain. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
761 B
Python
29 lines
761 B
Python
from __future__ import annotations
|
|
import path_setup # noqa: F401
|
|
from shared.infrastructure.factory import create_base_app
|
|
|
|
from bp import register_actions, register_data
|
|
from services import register_domain_services
|
|
|
|
|
|
def create_app() -> "Quart":
|
|
app = create_base_app(
|
|
"relations",
|
|
domain_services_fn=register_domain_services,
|
|
)
|
|
|
|
import os
|
|
from shared.sx.jinja_bridge import load_service_components
|
|
load_service_components(os.path.dirname(__file__), service_name="relations")
|
|
|
|
app.register_blueprint(register_actions())
|
|
app.register_blueprint(register_data())
|
|
|
|
from shared.sx.handlers import auto_mount_fragment_handlers
|
|
auto_mount_fragment_handlers(app, "relations")
|
|
|
|
return app
|
|
|
|
|
|
app = create_app()
|