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
2 changes: 2 additions & 0 deletions news/URB-3550.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Implement notifications `ARRET_PLAN_MODIF_COMMUNE`, `ARRET_PLAN_MODIF_COMMUNE_MANUELLE`
[daggelpop]
13 changes: 13 additions & 0 deletions src/Products/urban/browser/cron/notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ def _handle_notification(self, notice_id):
"PM_REFUS_TACITE_COMMUNE",
):
handler = DecisionSPWHandler
elif detailed_notification.notice_type in (
"ARRET_PLAN_MODIF_COMMUNE",
"ARRET_PLAN_MODIF_COMMUNE_MANUELLE",
):
handler = StopForAmendedPlansHandler

# GESPER

Expand Down Expand Up @@ -680,6 +685,14 @@ def desired_licence_state(self):
return ""


class StopForAmendedPlansHandler(IncomingNoticeHandler):
event_config_marker = "Products.urban.interfaces.IIntentionToSubmitAmendedPlans"

@property
def desired_licence_state(self):
return "suspension"


class GesperPublicSurveyHandler(IncomingNoticeHandler):
event_config_marker = "Products.urban.interfaces.IAcknowledgmentEvent"
create_licence_if_missing = True
Expand Down
6 changes: 6 additions & 0 deletions src/Products/urban/locales/fr/LC_MESSAGES/urban.po
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ msgstr "Un fichier CSV spécialement formaté doit être utilisé pour l'importa
msgid "A specially formatted CSV file must be used for import. The CSV file can be created from the ODT template file (can be downloaded <a href='/++resource++Products.urban/reclamant_reimport.ods'>here</a>) by 'save as' in CSV format"
msgstr "Un fichier CSV spécialement formaté doit être utilisé pour l'importation. Le fichier CSV peut être créé à partir du fichier modèle ODT (téléchargeable <a href='/++resource++Products.urban/reclamant_reimport.ods'>ici</a>) en l'enregistrant sous le format CSV"

msgid "ARRET_PLAN_MODIF_COMMUNE"
msgstr "Notification à la commune de l'arrêt de la procédure au profit de plans modificatifs"

msgid "ARRET_PLAN_MODIF_COMMUNE_MANUELLE"
msgstr "Notification à la commune de l'arrêt de la procédure au profit de plans modificatifs (autre commune)"

#: ../browser/licence/templates/licenceview.pt:31
#: ../browser/templates/urbaneventannouncementview.pt:35
#: ../browser/templates/urbaneventinquiryview.pt:34
Expand Down
6 changes: 6 additions & 0 deletions src/Products/urban/locales/urban-manual.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,12 @@ msgstr ""
msgid "NOTIFICATION_DECISION_COMMUNE"
msgstr ""

msgid "ARRET_PLAN_MODIF_COMMUNE"
msgstr ""

msgid "ARRET_PLAN_MODIF_COMMUNE_MANUELLE"
msgstr ""

msgid "DEMANDE_AVIS_OBLIGATOIRE_PLAN_INITIAL_1_ERE_INSTANCE"
msgstr ""

Expand Down
6 changes: 6 additions & 0 deletions src/Products/urban/locales/urban.pot
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ msgstr ""
msgid "A specially formatted CSV file must be used for import. The CSV file can be created from the ODT template file (can be downloaded <a href='/++resource++Products.urban/reclamant_reimport.ods'>here</a>) by 'save as' in CSV format"
msgstr ""

msgid "ARRET_PLAN_MODIF_COMMUNE"
msgstr ""

msgid "ARRET_PLAN_MODIF_COMMUNE_MANUELLE"
msgstr ""

#: ../browser/licence/templates/licenceview.pt:31
#: ../browser/templates/urbaneventannouncementview.pt:35
#: ../browser/templates/urbaneventinquiryview.pt:39
Expand Down
2 changes: 2 additions & 0 deletions src/Products/urban/notice/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ def _specific_code(self):
"NOTIF_COMPLETUDE1_NON_RECEVABLE_COMMUNE": "ns3:TwiceDefaultRequest",
"NOTIF_COMPLETUDE2_IRRECEVABLE_COMMUNE": "ns3:TwiceDefaultRequest",
"NOTIF_COMPLETUDE2_NON_RECEVABLE_COMMUNE": "ns3:TwiceDefaultRequest",
"ARRET_PLAN_MODIF_COMMUNE": "ns3:TwiceDefaultRequest",
"ARRET_PLAN_MODIF_COMMUNE_MANUELLE": "ns3:TwiceDefaultRequest",
"PM_NOTIF_IRRECEVABLE_COMMUNE": "ns3:TwiceDefaultRequest",
"NOTIFICATION_PROROGATION_COMMUNE": "ns3:TwiceDefaultRequest",
"PM_PROROGATION_COURRIER_COMMUNE": "ns3:TwiceDefaultRequest",
Expand Down