Skip to content

Commit 26de0d1

Browse files
authoredJul 8, 2024
Merge pull request #184 from syslabcom/scrum-2385-pdf-watermark
Port pdf_watermark field on IPublication
2 parents 7a3fff3 + 942b575 commit 26de0d1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
 

‎CHANGES.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Changelog
55
1.0.1 (unreleased)
66
------------------
77

8-
- Nothing changed yet.
8+
- Support changing PDF watermark image on publication.
9+
`#2385 <https://github.com/syslabcom/scrum/issues/2385>`_
10+
[reinhardt]
911

1012

1113
1.0.0 (2024-06-12)

‎src/recensio/plone/content/publication.py

+14
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
from plone.dexterity.content import Container
2+
from plone.namedfile.field import NamedBlobImage
23
from plone.supermodel import model
4+
from recensio.plone import _
35
from zope.interface import implementer
46

57

68
class IPublication(model.Schema):
79
"""Marker interface and Dexterity Python Schema for Publication."""
810

11+
pdf_watermark = NamedBlobImage(
12+
title=_("label_publication_pdf_watermark", default="PDF watermark"),
13+
description=_(
14+
"description_publication_pdf_watermark",
15+
default=(
16+
"Upload a publication logo for the PDF coversheet. Transparent PNG "
17+
"format images are recommended."
18+
),
19+
),
20+
required=False,
21+
)
22+
923

1024
@implementer(IPublication)
1125
class Publication(Container):

0 commit comments

Comments
 (0)
Please sign in to comment.