Move entry_associations to shared — fix events cross-app import

entry_associations only uses HTTP fetch_data/call_action, no direct DB.
Events app imported it via ..post.services which doesn't exist in events.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 18:05:30 +00:00
parent e45edbf362
commit 8f8bc4fad9
5 changed files with 84 additions and 74 deletions

View File

@@ -224,7 +224,7 @@ def register():
html = await render_template("_types/calendars/index.html")
if post_data:
from ..post.services.entry_associations import get_associated_entries
from shared.services.entry_associations import get_associated_entries
post_id = (post_data.get("post") or {}).get("id")
cals = (

View File

@@ -136,7 +136,7 @@ def register():
nav_oobs = []
for post in entry_posts:
# Get associated entries for this post
from ..post.services.entry_associations import get_associated_entries
from shared.services.entry_associations import get_associated_entries
associated_entries = await get_associated_entries(g.s, post.id)
# Load calendars for this post

View File

@@ -74,7 +74,7 @@ def register():
# Blog-embedded mode: also update post nav
if post_data:
from ..post.services.entry_associations import get_associated_entries
from shared.services.entry_associations import get_associated_entries
cals = (
await g.s.execute(