Skip to content

Commit

Permalink
fix-#825
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwaleee26 committed Dec 14, 2023
1 parent 8afed5a commit 8a5ae57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/mastering-plone-5/dexterity_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ class IMyEvent(model.Schema):
required=False)

@invariant
def validate_start_end(data):
def validate_start_end(data):
if data.start is not None and data.end is not None:
if data.start > data.end:
raise Invalid(_('Start must be before the end.'))
Expand All @@ -711,7 +711,7 @@ class IMyEvent(model.Schema):
To learn more about directives, validators and default values, refer to the following:
- [Form schema hints and directives](https://5.docs.plone.org/external/plone.app.dexterity/docs/reference/form-schema-hints.html)
- [Validation](https://5.docs.plone.org/develop/addons/schema-driven-forms/customizing-form-behaviour/validation.html) (this documentation unfortunately still uses the obsolete grok technology)
- [Validation](https://5.docs.plone.org/develop/addons/schema-driven-forms/customising-form-behaviour/validation.html) (this documentation unfortunately still uses the obsolete grok technology)
- [z3c.form documentation](https://z3cform.readthedocs.io/en/latest/advanced/validator.html)
- [Default values for fields on add forms](https://5.docs.plone.org/external/plone.app.dexterity/docs/advanced/defaults.html)
```
2 changes: 1 addition & 1 deletion docs/mastering-plone/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ You can even make a page, with or without sub pages, editable only by a group of
Plone has an integrated mechanism to remember urls that where modified.
A moved page is still available via the former url.

Additional to this behaviour, a page can be explicitly made available under further urls.
Additional to this behavior, a page can be explicitly made available under further urls.

You can find the UI for adding alternative urls following the context menu {guilabel}`...`.

Expand Down

0 comments on commit 8a5ae57

Please sign in to comment.