Skip to content

Commit 9d11b8e

Browse files
authored
Merge pull request plone#1320 from plone/relations-clean-up
2 parents 5b9868d + 6246478 commit 9d11b8e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/backend/behaviors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
myst:
33
html_meta:
4-
"description": "Behaviors are re-usable bundles of functionality that can be enabled or disabled on a per-content type basis."
5-
"property=og:description": "Behaviors are re-usable bundles of functionality that can be enabled or disabled on a per-content type basis."
4+
"description": "Behaviors are reusable bundles of functionality that can be enabled or disabled on a per-content type basis."
5+
"property=og:description": "Behaviors are reusable bundles of functionality that can be enabled or disabled on a per-content type basis."
66
"property=og:title": "Behaviors"
77
"keywords": "Behaviors"
88
---

docs/backend/content-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
myst:
33
html_meta:
4-
"description": "A content type is a kind of object that can store information and is editable by users."
5-
"property=og:description": "A content type is a kind of object that can store information and is editable by users."
4+
"description": "A content type is an object that can store information and is editable by users."
5+
"property=og:description": "A content type is an object that can store information and is editable by users."
66
"property=og:title": "Content Types"
77
"keywords": "Content Types"
88
---
@@ -22,5 +22,5 @@ See issue [Backend > Content Types needs content](https://github.com/plone/docum
2222

2323
```{todo}
2424
Describe how to add a content type (Python/XML) including FTI settings.
25-
Fields, Widgets, Vocabularies aso are descripted in detail in their own chapter and will be referenced frome examples here.
25+
Fields, Widgets, Vocabularies are also described in detail in their own chapters, and will be referenced from examples here.
2626
```

docs/backend/relations.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ directives.widget(
100100
These settings only have an effect in Plone 6 Classic UI.
101101
```
102102

103-
`RelatedItemsFieldWidget` is the python-class of the default widget used by relation fields.
103+
`RelatedItemsFieldWidget` is the Python class of the default widget used by relation fields.
104104

105105
With `pattern_options` you can further configure the widget.
106106

@@ -419,7 +419,7 @@ To display related items, you can use the `render` method of the default widget.
419419
<div tal:content="structure view/w/evil_mastermind/render" />
420420
```
421421

422-
This would render the related items as shown:
422+
This will render the related items as shown:
423423

424424
```{figure} https://user-images.githubusercontent.com/453208/77223704-4b714100-6b5f-11ea-855b-c6e209f1c25c.png
425425
:alt: Default rendering of a RelationList (since Plone 5.2.2)
@@ -516,7 +516,7 @@ In older Plone versions, you can use [collective.relationhelpers](https://pypi.o
516516
### REST API
517517

518518
A REST API endpoint to create, read, and delete relations and backrelations will be part of `plone.restapi`.
519-
See https://github.com/plone/plone.restapi/issues/1432
519+
See https://github.com/plone/plone.restapi/issues/1432.
520520

521521

522522
(relations-relation-fields-without-relations-label)=
@@ -597,7 +597,7 @@ The logic for this is provided by the package [z3c.relationfield](https://pypi.o
597597
This package contains the `RelationValue` object and everything needed to define a relation schema, and all the code that is necessary to automatically update the catalog.
598598

599599
A `RelationValue` object does not reference all objects directly.
600-
For the target, it uses an ID it gets from the `IntId` utility.
600+
For the target, it uses an ID that it gets from the `IntId` utility.
601601
This ID allows direct recovery of the object.
602602
The source object stores it directly.
603603

@@ -607,8 +607,8 @@ Because of this, the following happens when saving a relation via a form:
607607

608608
1. The HTML shows some nice representation of selectable objects.
609609
2. When the user submits the form, selected items are submitted by their UUIDs.
610-
3. The Widget retrieves the original object with the UUID.
611-
4. Some data manager gets another unique ID from an IntID Tool.
610+
3. The widget retrieves the original object with the UUID.
611+
4. Some data manager gets another unique ID from the `IntID` utility.
612612
5. The same data manager creates a `RelationValue` from this ID, and stores this relation value on the source object.
613613
6. Some event handlers update the catalogs.
614614

@@ -645,4 +645,4 @@ Thus the API for getting the target uses:
645645

646646
In addition, the relation value knows under which attribute it has been stored as `from_attribute`.
647647
It is usually the name of the field with which the relation is created.
648-
But it can also be the name of a relation that is created by code, for example, through linkintegrity relations (`isReferencing`) or the relation between a working copy and the original (`iterate-working-copy`).
648+
But it can also be the name of a relation that is created by code, for example, through link integrity relations (`isReferencing`) or the relation between a working copy and the original (`iterate-working-copy`).

0 commit comments

Comments
 (0)