tractatus/pptx-env/lib/python3.12/site-packages/pptx/shapes/__init__.py
TheFlow 2298d36bed fix(submissions): restructure Economist package and fix article display
- Create Economist SubmissionTracking package correctly:
  * mainArticle = full blog post content
  * coverLetter = 216-word SIR— letter
  * Links to blog post via blogPostId
- Archive 'Letter to The Economist' from blog posts (it's the cover letter)
- Fix date display on article cards (use published_at)
- Target publication already displaying via blue badge

Database changes:
- Make blogPostId optional in SubmissionTracking model
- Economist package ID: 68fa85ae49d4900e7f2ecd83
- Le Monde package ID: 68fa2abd2e6acd5691932150

Next: Enhanced modal with tabs, validation, export

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 08:47:42 +13:00

26 lines
720 B
Python

"""Objects used across sub-package."""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pptx.opc.package import XmlPart
from pptx.types import ProvidesPart
class Subshape(object):
"""Provides access to the containing part for drawing elements that occur below a shape.
Access to the part is required for example to add or drop a relationship. Provides
`self._parent` attribute to subclasses.
"""
def __init__(self, parent: ProvidesPart):
super(Subshape, self).__init__()
self._parent = parent
@property
def part(self) -> XmlPart:
"""The package part containing this object."""
return self._parent.part