Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jul 23, 2024
1 parent fb6758a commit 7d92e96
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 199 deletions.
9 changes: 0 additions & 9 deletions src/iosanita/contenttypes/behaviors/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@
for="plone.dexterity.interfaces.IDexterityContent"
marker=".servizi.IServizi"
/>
<plone:behavior
name="iosanita.contenttypes.behavior.parliamo_di"
title="Parliamo di"
description="Parliamo di"
factory=".parliamo_di.ParliamoDi"
provides=".parliamo_di.IParliamoDi"
for="plone.dexterity.interfaces.IDexterityContent"
marker=".parliamo_di.IParliamoDi"
/>
<plone:behavior
name="iosanita.contenttypes.behavior.a_chi_si_rivolge"
title="A chi si rivolge"
Expand Down
37 changes: 0 additions & 37 deletions src/iosanita/contenttypes/behaviors/parliamo_di.py

This file was deleted.

1 change: 0 additions & 1 deletion src/iosanita/contenttypes/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<include package=".events" />
<include package=".indexers" />
<include package=".restapi" />
<include package=".vocabularies" />

<include file="permissions.zcml" />

Expand Down
24 changes: 0 additions & 24 deletions src/iosanita/contenttypes/indexers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,6 @@
from plone.indexer.decorator import indexer


@indexer(IDexterityContent)
def parliamo_di(context, **kw):
return [
x.to_object.Title()
for x in getattr(context.aq_base, "parliamo_di", [])
if x.to_object
]


@indexer(IDexterityContent)
def parliamo_di_uid(context, **kw):
return [
x.to_object.UID()
for x in getattr(context.aq_base, "parliamo_di", [])
if x.to_object
]


@indexer(IDexterityContent)
def ufficio_responsabile(context, **kw):
uffici = getattr(context.aq_base, "ufficio_responsabile", [])
return [ufficio.UID() for ufficio in filter(bool, [x.to_object for x in uffici])]


@indexer(IDexterityContent)
def parent(context):
obj_parent = context.aq_parent
Expand Down
12 changes: 0 additions & 12 deletions src/iosanita/contenttypes/indexers/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@
factory=".events.event_location"
name="event_location"
/>
<adapter
factory=".common.parliamo_di"
name="parliamo_di"
/>
<adapter
factory=".common.parliamo_di_uid"
name="parliamo_di_uid"
/>
<adapter
factory=".common.ufficio_responsabile"
name="ufficio_responsabile"
/>
<adapter
factory=".common.parent"
name="parent"
Expand Down
Empty file.
12 changes: 0 additions & 12 deletions src/iosanita/contenttypes/vocabularies/configure.zcml

This file was deleted.

49 changes: 0 additions & 49 deletions src/iosanita/contenttypes/vocabularies/mockup.py

This file was deleted.

55 changes: 0 additions & 55 deletions src/iosanita/contenttypes/vocabularies/reference_vocabularies.py

This file was deleted.

0 comments on commit 7d92e96

Please sign in to comment.