From 548149d82328551ca479910aee986fa5258c4c76 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 20 Sep 2024 15:16:07 +0200 Subject: [PATCH] Fix settings (#3) * add serializer/deserializer for controlpanel * remove unused field and rename field in settings * code cleanup --- src/iosanita/policy/interfaces.py | 21 ++------- src/iosanita/policy/restapi/configure.zcml | 1 + .../restapi/services/search_filters/get.py | 46 ++----------------- src/iosanita/policy/testing.py | 2 +- 4 files changed, 9 insertions(+), 61 deletions(-) diff --git a/src/iosanita/policy/interfaces.py b/src/iosanita/policy/interfaces.py index a083340..00e0b06 100644 --- a/src/iosanita/policy/interfaces.py +++ b/src/iosanita/policy/interfaces.py @@ -43,29 +43,16 @@ class IIoSanitaSettings(Interface): value_type=TextLine(), ) - search_sections = SourceText( - title=_("search_sections_label", default="Sezioni ricerca"), + quick_search = SourceText( + title=_("quick_search_label", default="Scorcatoie di ricerca"), description=_( - "search_sections_help", - default="Inserire una lista di sezioni per la ricerca.", + "quick_search_help", + default="Inserire una lista di scorciatoie per la ricerca.", ), default="", required=False, ) - show_modified_default = Bool( - title=_("show_modified_default_label", default="Mostra la data di modifica"), - description=_( - "show_modified_default_help", - default="Questo รจ il valore di default per decidere se mostrare " - "o meno la data di modifica nei contenuti che hanno la behavior " - "abilitata. E' poi possibile sovrascrivere il default nei singoli " - 'contenuti (nel tab "Impostazioni").', - ), - default=True, - required=False, - ) - show_dynamic_folders_in_footer = Bool( title=_("show_dynamic_folders_in_footer_label", default="Footer dinamico"), description=_( diff --git a/src/iosanita/policy/restapi/configure.zcml b/src/iosanita/policy/restapi/configure.zcml index 2d6e335..99c772b 100644 --- a/src/iosanita/policy/restapi/configure.zcml +++ b/src/iosanita/policy/restapi/configure.zcml @@ -7,6 +7,7 @@ +