Delete market sx_components.py — move all rendering to sxc/pages
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 32s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 32s
Phase 6 of the zero-Python-rendering plan. All 46 rendering functions move from market/sx/sx_components.py into market/sxc/pages/__init__.py. Route handlers import from sxc.pages instead. load_service_components call moves into _load_market_page_files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,7 @@ def register():
|
||||
return await make_response(render_comp("error-inline", message=str(e)), 422)
|
||||
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_markets_admin_list_panel
|
||||
from sxc.pages import render_markets_admin_list_panel
|
||||
ctx = await get_template_context()
|
||||
html = await render_markets_admin_list_panel(ctx)
|
||||
return sx_response(html)
|
||||
@@ -65,7 +65,7 @@ def register():
|
||||
await services.market.soft_delete_marketplace(g.s, "page", post_id, market_slug)
|
||||
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_markets_admin_list_panel
|
||||
from sxc.pages import render_markets_admin_list_panel
|
||||
ctx = await get_template_context()
|
||||
html = await render_markets_admin_list_panel(ctx)
|
||||
return sx_response(html)
|
||||
|
||||
Reference in New Issue
Block a user