Skip to content

Commit

Permalink
updated Event ct
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti committed Jul 11, 2024
1 parent c0c4576 commit 56c76a6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/iosanita/contenttypes/behaviors/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
marker=".argomenti.IArgomentiNews"
/>

<!-- <plone:behavior
<plone:behavior
name="iosanita.contenttypes.behavior.strutture_correlate"
title="Strutture correlate"
description=""
factory=".strutture_correlate.StruttureCorrelate"
provides=".strutture_correlate.IStruttureCorrelate"
for="plone.dexterity.interfaces.IDexterityContent"
marker=".strutture_correlate.IStruttureCorrelate"
/> -->
/>

<plone:behavior
name="iosanita.contenttypes.behavior.additional_help_infos"
Expand Down
11 changes: 8 additions & 3 deletions src/iosanita/contenttypes/behaviors/evento.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ class IEvento(model.Schema):
)

informazioni_aggiuntive_luogo = BlocksField(
title=_("informazioni_aggiuntive_luogo_label", default="Informazioni aggiuntive"),
title=_(
"informazioni_aggiuntive_luogo_label", default="Informazioni aggiuntive"
),
required=False,
description=_(
"informazioni_aggiuntive_luogo_help",
Expand Down Expand Up @@ -221,7 +223,7 @@ class IEvento(model.Schema):
"descrizione_destinatari",
],
)

model.fieldset("costi", label=_("costi_label", default="Costi"), fields=["prezzo"])
model.fieldset(
"contatti",
Expand Down Expand Up @@ -257,7 +259,10 @@ class IEvento(model.Schema):
model.fieldset(
"dove",
label=_("dove_label", default="Dove"),
fields=["strutture", "informazioni_aggiuntive_luogo",]
fields=[
"strutture",
"informazioni_aggiuntive_luogo",
],
)

textindexer.searchable("descrizione_estesa")
Expand Down
1 change: 0 additions & 1 deletion src/iosanita/contenttypes/profiles/default/types/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<element value="plone.eventrecurrence" />
<element value="iosanita.contenttypes.behavior.additional_help_infos" />
<element value="iosanita.contenttypes.behavior.evento" />
<!-- <element value="iosanita.contenttypes.behavior.strutture_correlate" /> -->
<element value="iosanita.contenttypes.behavior.address_event" />
<element value="iosanita.contenttypes.behavior.geolocation_event" />
<element value="iosanita.contenttypes.behavior.contatti_event" />
Expand Down
2 changes: 0 additions & 2 deletions src/iosanita/contenttypes/tests/test_ct_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ def test_behaviors_enabled_for_event(self):
"plone.eventrecurrence",
"iosanita.contenttypes.behavior.additional_help_infos",
"iosanita.contenttypes.behavior.evento",
"iosanita.contenttypes.behavior. strutture_correlate_evento",
"iosanita.contenttypes.behavior.address_event",
"iosanita.contenttypes.behavior.geolocation_event",
"iosanita.contenttypes.behavior.strutture_correlate",
"iosanita.contenttypes.behavior.contatti_event",
"plone.dublincore",
"plone.namefromtitle",
Expand Down

0 comments on commit 56c76a6

Please sign in to comment.