diff --git a/news/URB-3568.feature b/news/URB-3568.feature new file mode 100644 index 000000000..e79543b0e --- /dev/null +++ b/news/URB-3568.feature @@ -0,0 +1,3 @@ +Add handling of ABANDON_COMMUNE_MANUELLE, PM_ABANDON_COMMUNE_EP, and PM_ABANDON_COMMUNE_EP_FTFD notification. +Adds the dossier-abandonne event configuration to CODT Unique Licence, EnvClassOne, and EnvClassTwo licence configurations in the urban.events repository. +[WBoudabous] \ No newline at end of file diff --git a/src/Products/urban/browser/cron/notice.py b/src/Products/urban/browser/cron/notice.py index a9cf804ba..6ec1a08a4 100644 --- a/src/Products/urban/browser/cron/notice.py +++ b/src/Products/urban/browser/cron/notice.py @@ -246,6 +246,12 @@ def _handle_notification(self, notice_id): "PM_REFUS_TACITE_COMMUNE", ): handler = DecisionSPWHandler + elif detailed_notification.notice_type in ( + "ABANDON_COMMUNE_MANUELLE", + "PM_ABANDON_COMMUNE_EP", + "PM_ABANDON_COMMUNE_EP_FTFD", + ): + handler = AbandonedHandler # GESPER @@ -609,6 +615,14 @@ def fill_incoming_event(self): self.event.setExternalDecision(self.notification.proposed_decision_code) +class AbandonedHandler(IncomingNoticeHandler): + event_config_marker = "Products.urban.interfaces.IForcedEndEvent" + + @property + def desired_licence_state(self): + return "retired" + + class DecisionSPWHandler(IncomingNoticeHandler): event_config_marker = "Products.urban.interfaces.IWalloonRegionDecisionEvent" diff --git a/src/Products/urban/locales/fr/LC_MESSAGES/urban.po b/src/Products/urban/locales/fr/LC_MESSAGES/urban.po index dea5e457c..d88e94ba6 100644 --- a/src/Products/urban/locales/fr/LC_MESSAGES/urban.po +++ b/src/Products/urban/locales/fr/LC_MESSAGES/urban.po @@ -5958,3 +5958,12 @@ msgstr "Plans Modificatifs - Notification à la commune que le RS vaut décision msgid "PM_REFUS_TACITE_COMMUNE" msgstr "Plans modificatifs - Notification à la commune du refus tacite" + +msgid "ABANDON_COMMUNE_MANUELLE" +msgstr "Notification à la commune de l'abandon de la procédure" + +msgid "PM_ABANDON_COMMUNE_EP" +msgstr "Plans modificatifs - Notification à la commune de l'abandon de la procédure" + +msgid "PM_ABANDON_COMMUNE_EP_FTFD" +msgstr "Plans modificatifs - Notification à la commune de l'abandon de la procédure (AC=FTFD)" diff --git a/src/Products/urban/locales/urban-manual.pot b/src/Products/urban/locales/urban-manual.pot index 8456b81e8..754ed403b 100644 --- a/src/Products/urban/locales/urban-manual.pot +++ b/src/Products/urban/locales/urban-manual.pot @@ -1713,3 +1713,12 @@ msgstr "" msgid "PM_REFUS_TACITE_COMMUNE" msgstr "" + +msgid "ABANDON_COMMUNE_MANUELLE" +msgstr "" + +msgid "PM_ABANDON_COMMUNE_EP" +msgstr "" + +msgid "PM_ABANDON_COMMUNE_EP_FTFD" +msgstr "" diff --git a/src/Products/urban/locales/urban.pot b/src/Products/urban/locales/urban.pot index a28a03d8b..0eb6626ca 100644 --- a/src/Products/urban/locales/urban.pot +++ b/src/Products/urban/locales/urban.pot @@ -5946,3 +5946,12 @@ msgstr "" msgid "PM_PROROGATION_COURRIER_COMMUNE" msgstr "" + +msgid "ABANDON_COMMUNE_MANUELLE" +msgstr "" + +msgid "PM_ABANDON_COMMUNE_EP" +msgstr "" + +msgid "PM_ABANDON_COMMUNE_EP_FTFD" +msgstr "" diff --git a/src/Products/urban/migration/update_290.py b/src/Products/urban/migration/update_290.py index 68458e604..d6f242257 100644 --- a/src/Products/urban/migration/update_290.py +++ b/src/Products/urban/migration/update_290.py @@ -643,3 +643,4 @@ def normalize_externaldecisions_vocabulary(context): new_term = getattr(voc_folder, vocabulary_term) new_term.setDescription(DESCRIPTION) logger.info("Created missing vocabulary term: %s", vocabulary_term) + diff --git a/src/Products/urban/profiles/default/metadata.xml b/src/Products/urban/profiles/default/metadata.xml index 928bd4b6a..ba561c0f8 100644 --- a/src/Products/urban/profiles/default/metadata.xml +++ b/src/Products/urban/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 2916 + 2915 profile-Products.urban:preinstall