mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
refactor(routes): move gallery domain into routes/gallery subpackage (#4903)
Move the gallery route domain into routes/gallery/ while preserving backward-compatible legacy import shims. - app imports the canonical gallery route module - canonical gallery route code imports canonical gallery helpers - legacy gallery route/helper paths remain compatibility aliases - add shim regression coverage for module identity and monkeypatch behavior - repoint gallery source-introspection tests to the canonical paths No intended behavior change.
This commit is contained in:
@@ -1099,9 +1099,9 @@ def _import_session_routes_for_filename():
|
||||
def _import_gallery_routes_for_filename():
|
||||
# Same rationale as the session route helper: import _sanitize_gallery_filename
|
||||
# against the real core.database and leave a clean, real module cached.
|
||||
_drop_route_module_cache("routes.gallery_routes")
|
||||
_drop_route_module_cache("routes.gallery_helpers")
|
||||
return importlib.import_module("routes.gallery_routes")
|
||||
_drop_route_module_cache("routes.gallery.gallery_routes")
|
||||
_drop_route_module_cache("routes.gallery.gallery_helpers")
|
||||
return importlib.import_module("routes.gallery.gallery_routes")
|
||||
|
||||
|
||||
def test_export_filename_sanitizer_blocks_header_and_path_chars():
|
||||
|
||||
Reference in New Issue
Block a user