Account dashboard, newsletters, widget pages (tickets, bookings). OAuth SSO client via shared blueprint — per-app first-party cookies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
1.0 KiB
Python
28 lines
1.0 KiB
Python
"""Account app service registration."""
|
|
from __future__ import annotations
|
|
|
|
|
|
def register_domain_services() -> None:
|
|
"""Register services for the account app.
|
|
|
|
Account needs all domain services since widgets (tickets, bookings)
|
|
pull data from blog, calendar, market, cart, and federation.
|
|
"""
|
|
from shared.services.registry import services
|
|
from shared.services.federation_impl import SqlFederationService
|
|
from shared.services.blog_impl import SqlBlogService
|
|
from shared.services.calendar_impl import SqlCalendarService
|
|
from shared.services.market_impl import SqlMarketService
|
|
from shared.services.cart_impl import SqlCartService
|
|
|
|
if not services.has("federation"):
|
|
services.federation = SqlFederationService()
|
|
if not services.has("blog"):
|
|
services.blog = SqlBlogService()
|
|
if not services.has("calendar"):
|
|
services.calendar = SqlCalendarService()
|
|
if not services.has("market"):
|
|
services.market = SqlMarketService()
|
|
if not services.has("cart"):
|
|
services.cart = SqlCartService()
|