Skip to content

Commit

Permalink
Merge pull request #33 from plone/cleanup-patterns
Browse files Browse the repository at this point in the history
Cleanup patterns settings
  • Loading branch information
mauritsvanrees authored Jun 19, 2024
2 parents 234018b + d2323fd commit 4a0e4b2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 85 deletions.
1 change: 1 addition & 0 deletions news/33-1.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mockup TinyMCE settings: Remove deprecated AtD plugin settings.
1 change: 1 addition & 0 deletions news/33-2.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mockup TinyMCE settings: Remove unused AtD related views and interfaces.
1 change: 0 additions & 1 deletion src/plone/base/interfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from .controlpanel import ITinyMCEPluginSchema
from .controlpanel import ITinyMCEResourceTypesSchema
from .controlpanel import ITinyMCESchema
from .controlpanel import ITinyMCESpellCheckerSchema
from .controlpanel import ITypesSchema
from .controlpanel import IUserGroupsSettingsSchema
from .events import IConfigurationChangedEvent
Expand Down
10 changes: 0 additions & 10 deletions src/plone/base/interfaces/atd.py

This file was deleted.

74 changes: 0 additions & 74 deletions src/plone/base/interfaces/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,79 +695,6 @@ class ITinyMCEPluginSchema(Interface):
ITinyMCELibrariesSchema = ITinyMCEPluginSchema # bw compat


class ITinyMCESpellCheckerSchema(Interface):
"""This interface defines the libraries properties."""

libraries_spellchecker_choice = schema.Choice(
title=_("Spellchecker plugin to use"),
description=_("This option allows you to choose the spellchecker for TinyMCE."),
missing_value=set(),
vocabulary=SimpleVocabulary(
[
SimpleTerm("browser", "browser", _("Default browser spellchecker")),
SimpleTerm("AtD", "AtD", _("After the deadline (FLOSS)")),
]
),
default="browser",
required=False,
)

libraries_atd_ignore_strings = schema.List(
title=_("AtD ignore strings"),
description=_(
"label_atd_ignore_strings",
default='A list of strings which the "After the Deadline" '
"spellchecker should ignore. "
"Note: This option is only applicable when the "
"appropriate spellchecker has been chosen above.",
),
default=["Zope", "Plone", "TinyMCE"],
value_type=schema.TextLine(),
missing_value=[],
required=False,
)

libraries_atd_show_types = schema.List(
title=_("AtD error types to show"),
description=_(
"help_atderrortypes_to_show",
default="A list of error types which the "
'"After the Deadline" spellchecker should check for. '
"By default, all the available error type will be "
"listed here.",
),
value_type=schema.TextLine(),
default=[
"Bias Language",
"Cliches",
"Complex Expression",
"Diacritical Marks",
"Double Negatives",
"Hidden Verbs",
"Jargon Language",
"Passive voice",
"Phrases to Avoid",
"Redundant Expression",
],
missing_value=[],
required=False,
)

libraries_atd_service_url = schema.TextLine(
title=_("AtD service URL"),
description=_(
"help_atd_service_url",
default='The URL of the "After the Deadline" grammar and spell '
"checking server. "
"The default value is the public server, "
"but ideally you should download and install your own "
"and specify its address here.",
),
required=True,
default="service.afterthedeadline.com",
)


class ITinyMCEResourceTypesSchema(Interface):
"""This interface defines the resource types properties."""

Expand Down Expand Up @@ -845,7 +772,6 @@ class ITinyMCEAdvancedSchema(Interface):
class ITinyMCESchema(
ITinyMCELayoutSchema,
ITinyMCEPluginSchema,
ITinyMCESpellCheckerSchema,
ITinyMCEResourceTypesSchema,
ITinyMCEAdvancedSchema,
):
Expand Down

0 comments on commit 4a0e4b2

Please sign in to comment.