Skip to content

Commit

Permalink
Merge pull request #863 from ZeitOnline/WCM-408
Browse files Browse the repository at this point in the history
WCM-408: remove fallback logic of teaserText
  • Loading branch information
Sinnaj94 authored Sep 30, 2024
2 parents 92e630a + ec55bfe commit 8b761d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions core/docs/changelog/WCM-408.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WCM-408: remove fallback logic of teaserText
8 changes: 1 addition & 7 deletions core/src/zeit/content/volume/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,9 @@ def product(self, value):
'volume_note',
)

_old_volume_note = zeit.cms.content.dav.DAVProperty(
zeit.content.volume.interfaces.IVolume['volume_note'],
zeit.cms.interfaces.DOCUMENT_SCHEMA_NS,
'teaserText',
)

@property
def volume_note(self):
text = self._volume_note or self._old_volume_note
text = self._volume_note
if text is None:
text = zeit.cms.config.required('zeit.content.volume', 'default-teaser-text')
return self.fill_template(text)
Expand Down

0 comments on commit 8b761d9

Please sign in to comment.