Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions news/URB-3568.feature
Original file line number Diff line number Diff line change
@@ -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]
14 changes: 14 additions & 0 deletions src/Products/urban/browser/cron/notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ def _handle_notification(self, notice_id):
"PM_REFUS_TACITE_COMMUNE",
):
handler = DecisionSPWHandler
elif detailed_notification.notice_type in (
Comment thread
mpeeters marked this conversation as resolved.
"ABANDON_COMMUNE_MANUELLE",
"PM_ABANDON_COMMUNE_EP",
"PM_ABANDON_COMMUNE_EP_FTFD",
):
handler = AbandonedHandler

# GESPER

Expand Down Expand Up @@ -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"

Expand Down
9 changes: 9 additions & 0 deletions src/Products/urban/locales/fr/LC_MESSAGES/urban.po
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
9 changes: 9 additions & 0 deletions src/Products/urban/locales/urban-manual.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
9 changes: 9 additions & 0 deletions src/Products/urban/locales/urban.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
1 change: 1 addition & 0 deletions src/Products/urban/migration/update_290.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

2 changes: 1 addition & 1 deletion src/Products/urban/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<metadata>
<version>2916</version>
<version>2915</version>
<dependencies>
<dependency>profile-Products.urban:preinstall</dependency>
</dependencies>
Expand Down