From 71754f99e485149d28996bd16685b537620ba52a Mon Sep 17 00:00:00 2001 From: David Glick Date: Thu, 5 Dec 2024 11:19:25 -0800 Subject: [PATCH] lint --- backend/src/collective/volto/formsupport/interfaces.py | 8 +++----- .../volto/formsupport/profiles/default/registry/main.xml | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/src/collective/volto/formsupport/interfaces.py b/backend/src/collective/volto/formsupport/interfaces.py index 084c922..5b570ec 100644 --- a/backend/src/collective/volto/formsupport/interfaces.py +++ b/backend/src/collective/volto/formsupport/interfaces.py @@ -1,8 +1,8 @@ from plone.dexterity.content import DexterityContent +from zope import schema from zope.interface import Attribute from zope.interface import Interface from zope.publisher.interfaces.browser import IDefaultBrowserLayer -from zope import schema from ZPublisher.BaseRequest import BaseRequest import dataclasses @@ -106,13 +106,11 @@ def __call__(): ${mail_footer} """ -class IFormSettings(Interface): +class IFormSettings(Interface): mail_templates = schema.Dict( title="Email templates", key_type=schema.TextLine(), value_type=schema.Text(), - default={ - "default": DEFAULT_TEMPLATE - } + default={"default": DEFAULT_TEMPLATE}, ) diff --git a/backend/src/collective/volto/formsupport/profiles/default/registry/main.xml b/backend/src/collective/volto/formsupport/profiles/default/registry/main.xml index f8b8abb..7470003 100644 --- a/backend/src/collective/volto/formsupport/profiles/default/registry/main.xml +++ b/backend/src/collective/volto/formsupport/profiles/default/registry/main.xml @@ -4,6 +4,7 @@ > + prefix="schemaform" + />