Skip to content

Commit 6baa54f

Browse files
committed
Apply review comments
1 parent 915aea9 commit 6baa54f

7 files changed

Lines changed: 29 additions & 77 deletions

File tree

src/Products/urban/locales/fr/LC_MESSAGES/urban.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5930,4 +5930,13 @@ msgid "urban_label_buildingPart"
59305930
msgstr "Partie de l'immeuble concernée"
59315931

59325932
msgid "urban_label_buildingType"
5933-
msgstr "Nature de l'immeuble"
5933+
msgstr "Nature de l'immeuble"
5934+
5935+
msgid "ABANDON_COMMUNE_MANUELLE"
5936+
msgstr "Notification à la commune de l'abandon de la procédure"
5937+
5938+
msgid "PM_ABANDON_COMMUNE_EP"
5939+
msgstr "Plans modificatifs - Notification à la commune de l'abandon de la procédure"
5940+
5941+
msgid "PM_ABANDON_COMMUNE_EP_FTFD"
5942+
msgstr "Plans modificatifs - Notification à la commune de l'abandon de la procédure (AC=FTFD)"

src/Products/urban/locales/urban-manual.pot

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,3 +1689,12 @@ msgstr ""
16891689

16901690
msgid "DECISION_GESPER_2_EME_INSTANCE"
16911691
msgstr ""
1692+
1693+
msgid "ABANDON_COMMUNE_MANUELLE"
1694+
msgstr ""
1695+
1696+
msgid "PM_ABANDON_COMMUNE_EP"
1697+
msgstr ""
1698+
1699+
msgid "PM_ABANDON_COMMUNE_EP_FTFD"
1700+
msgstr ""

src/Products/urban/locales/urban.pot

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5922,3 +5922,12 @@ msgstr ""
59225922

59235923
msgid "zip_folder_title"
59245924
msgstr ""
5925+
5926+
msgid "ABANDON_COMMUNE_MANUELLE"
5927+
msgstr ""
5928+
5929+
msgid "PM_ABANDON_COMMUNE_EP"
5930+
msgstr ""
5931+
5932+
msgid "PM_ABANDON_COMMUNE_EP_FTFD"
5933+
msgstr ""

src/Products/urban/migration/update_290.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -538,43 +538,3 @@ def reindex_getDecisionDate(context):
538538
reindexIndexes(None, ["getDecisionDate"])
539539

540540
logger.info("upgrade step done!")
541-
542-
543-
def add_dossier_abandonne_event(context):
544-
545-
logger = logging.getLogger("urban: Add dossier-abandonne event config")
546-
547-
CONFIGS = ["codt_uniquelicence", "envclassone", "envclasstwo"]
548-
EVENT = {
549-
"id": "dossier-abandonne",
550-
"title": "Dossier abandonné",
551-
"eventDateLabel": "Date de notification",
552-
"eventType": ("Products.urban.interfaces.IForcedEndEvent",),
553-
"isKeyEvent": True,
554-
"keyDates": ("eventDate",),
555-
"podTemplates": (),
556-
}
557-
558-
tool = getToolByName(context, "portal_urban")
559-
for config_id in CONFIGS:
560-
try:
561-
uet_folder = getattr(
562-
tool.getLicenceConfig(None, urbanConfigId=config_id),
563-
"eventconfigs",
564-
)
565-
except AttributeError:
566-
logger.warning("Config %s not found, skipping", config_id)
567-
continue
568-
569-
if getattr(uet_folder, EVENT["id"], None):
570-
logger.info("Event %s already exists in %s, skipping",
571-
EVENT["id"],
572-
config_id,)
573-
continue
574-
575-
uet_folder.invokeFactory("EventConfig", **EVENT)
576-
new_event = uet_folder[EVENT["id"]]
577-
api.content.transition(new_event, "disable")
578-
logger.info("Added %s to %s", EVENT["id"], config_id)
579-
580-
logger.info("upgrade step done!")

src/Products/urban/migration/upgrades_290.zcml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,4 @@
124124
handler=".update_290.reindex_getDecisionDate"
125125
profile="Products.urban:default" />
126126

127-
<gs:upgradeStep
128-
title="Add dossier-abandonne event config"
129-
description=""
130-
source="2915"
131-
destination="2916"
132-
handler=".update_290.add_dossier_abandonne_event"
133-
profile="Products.urban:default" />
134-
135127
</configure>

src/Products/urban/profiles/default/metadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<metadata>
3-
<version>2916</version>
3+
<version>2915</version>
44
<dependencies>
55
<dependency>profile-Products.urban:preinstall</dependency>
66
</dependencies>

src/Products/urban/profiles/extra/data.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4433,15 +4433,6 @@
44334433
"eventType": ("Products.urban.interfaces.IDecisionProjectFromSPWEvent",),
44344434
"TALCondition": "python: licence.getProcedureChoice() != 'article65'",
44354435
},
4436-
{
4437-
"id": "dossier-abandonne",
4438-
"title": "Dossier abandonné",
4439-
"eventDateLabel": "Date de notification",
4440-
"eventType": ("Products.urban.interfaces.IForcedEndEvent",),
4441-
"isKeyEvent": True,
4442-
"keyDates": ("eventDate",),
4443-
"podTemplates": (),
4444-
},
44454436
{
44464437
"id": "plans-modificatifs",
44474438
"title": "Plans modificatifs",
@@ -10221,15 +10212,6 @@
1022110212
"eventType": ("Products.urban.interfaces.IDecisionProjectFromSPWEvent",),
1022210213
"TALCondition": "python: licence.getProcedureChoice() != 'article65'",
1022310214
},
10224-
{
10225-
"id": "dossier-abandonne",
10226-
"title": "Dossier abandonné",
10227-
"eventDateLabel": "Date de notification",
10228-
"eventType": ("Products.urban.interfaces.IForcedEndEvent",),
10229-
"isKeyEvent": True,
10230-
"keyDates": ("eventDate",),
10231-
"podTemplates": (),
10232-
},
1023310215
{
1023410216
"id": "modified-blueprints",
1023510217
"title": "Plans modificatifs",
@@ -11251,15 +11233,6 @@
1125111233
"eventType": ("Products.urban.interfaces.IDecisionProjectFromSPWEvent",),
1125211234
"TALCondition": "python: licence.getProcedureChoice() != 'article65'",
1125311235
},
11254-
{
11255-
"id": "dossier-abandonne",
11256-
"title": "Dossier abandonné",
11257-
"eventDateLabel": "Date de notification",
11258-
"eventType": ("Products.urban.interfaces.IForcedEndEvent",),
11259-
"isKeyEvent": True,
11260-
"keyDates": ("eventDate",),
11261-
"podTemplates": (),
11262-
},
1126311236
{
1126411237
"id": "modified-blueprints",
1126511238
"title": "Plans modificatifs",

0 commit comments

Comments
 (0)