Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Sep 22, 2023
1 parent 2001bb7 commit 2d7e430
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ Changelog
2.0.1 (unreleased)
------------------

- Nothing changed yet.

- Utilizzare defaultFactory se il default è una funzione, altrimenti non viene
eseguita nel momento corretto.
[mamico]

2.0.0 (2023-09-12)
------------------
Expand Down
14 changes: 7 additions & 7 deletions src/redturtle/prenotazioni/content/prenotazioni_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def data_validation(data):
default="Prenotazione created notification message.",
),
description=_("notify_on_submit_message_help", default=""),
default=notify_on_submit_message_default_factory(),
defaultFactory=notify_on_submit_message_default_factory,
required=False,
)
notify_on_confirm_subject = schema.TextLine(
Expand All @@ -552,7 +552,7 @@ def data_validation(data):
default="Prenotazione confirmed notification subject.",
),
description=_("notify_on_confirm_subject_help", default=""),
default=notify_on_confirm_subject_default_factory(),
defaultFactory=notify_on_confirm_subject_default_factory,
required=False,
)
notify_on_confirm_message = schema.Text(
Expand All @@ -561,7 +561,7 @@ def data_validation(data):
default="Prenotazione confirmed notification message.",
),
description=_("notify_on_confirm_message_help", default=""),
default=notify_on_confirm_message_default_factory(),
defaultFactory=notify_on_confirm_message_default_factory,
required=False,
)
notify_on_move_subject = schema.TextLine(
Expand All @@ -570,7 +570,7 @@ def data_validation(data):
default="Prenotazione moved notification subject.",
),
description=_("notify_on_move_subject_help", default=""),
default=notify_on_move_subject_default_factory(),
defaultFactory=notify_on_move_subject_default_factory,
required=False,
)
notify_on_move_message = schema.Text(
Expand All @@ -579,7 +579,7 @@ def data_validation(data):
default="Prenotazione moved notification message.",
),
description=_("notify_on_move_message_help", default=""),
default=notify_on_move_message_default_factory(),
defaultFactory=notify_on_move_message_default_factory,
required=False,
)
notify_on_refuse_subject = schema.TextLine(
Expand All @@ -588,7 +588,7 @@ def data_validation(data):
default="Prenotazione refused notification subject.",
),
description=_("notify_on_refuse_subject_help", default=""),
default=notify_on_refuse_subject_default_factory(),
defaultFactory=notify_on_refuse_subject_default_factory,
required=False,
)
notify_on_refuse_message = schema.Text(
Expand All @@ -597,7 +597,7 @@ def data_validation(data):
default="Prenotazione created notification message.",
),
description=_("notify_on_refuse_message_help", default=""),
default=notify_on_refuse_message_default_factory(),
defaultFactory=notify_on_refuse_message_default_factory,
required=False,
)

Expand Down

0 comments on commit 2d7e430

Please sign in to comment.