Skip to content

Commit 169906d

Browse files
committed
Commit WIP
1 parent 32fbe4b commit 169906d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/classic-ui/views.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@ myst:
1111

1212
# Views
1313

14-
`Views` are the basic elements of modern Python web frameworks. A view runs code to setup Python variables for a rendering template.The output is not limited to HTML pages and snippets, but may contain {term}`JSON`, file download payloads, or other data formats.
14+
`Views` are the basic elements of modern Python web frameworks.
15+
A view runs code to setup Python variables for a rendering template.
16+
The output is not limited to HTML pages and snippets, but may contain {term}`JSON`, file download payloads, or other data formats.
1517

1618
Views are usually a combination of:
1719

18-
- a Python class, which performs the user interface logic setup, and
19-
- corresponding {ref}`plone:classic-ui-templates-label`, or direct Python string output.
20+
- a Python class, which performs the user interface logic setup, and
21+
- corresponding {ref}`plone:classic-ui-templates-label`, or direct Python string output.
2022

2123
```{eval-rst}
2224
.. graphviz::
23-
:align: center
25+
:align: center
2426
25-
digraph viewstructure {
27+
digraph viewstructure {
2628
{
2729
node [margin=5,shape=box]
2830
}
2931
ZCML -> {Python, Template};
30-
}
32+
}
3133
```
3234

3335

@@ -1001,7 +1003,3 @@ return self.obj.absolute_url() # Acquistion chain messed up, getPhysicalPath() f
10011003
One workaround to avoid this mess is to use aq_inner when accessing self.obj values:
10021004

10031005
- <http://stackoverflow.com/a/11755348/315168>
1004-
1005-
1006-
1007-

0 commit comments

Comments
 (0)