Skip to content

Commit

Permalink
title
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Aug 30, 2024
1 parent 705a412 commit 04b90e3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/rer/ufficiostampa/browser/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,16 @@ def type_name(self):
@property
@memoize
def subject(self):
value = "{type}: {title}".format(
type=self.context.portal_type == "ComunicatoStampa"
and "Comunicato Regione" # noqa
or "Invito Regione", # noqa
title=self.context.title,
)
# value = "{type}: {title}".format(
# type=self.context.portal_type == "ComunicatoStampa"
# and "Comunicato Regione" # noqa
# or "Invito Regione", # noqa
# title=self.context.title,
# )
if self.context.portal_type == "InvitoStampa":
value = f"Invito: {self.context.title}"
else:
value = f"Comunicato: {self.context.title}"
return value

def get_subscribers(self, data):
Expand Down

0 comments on commit 04b90e3

Please sign in to comment.