Skip to content

Commit 98eba79

Browse files
committed
cleanup some old namings
1 parent 741cc2e commit 98eba79

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/classic-ui/views.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,7 @@ To use the same template code several times you can either:
724724
- share a `ViewPageTemplate` instance between views and using it several times.
725725
726726
```{Note}
727-
The Plone 2.x way of doing this with TAL template language macros is discouraged as a way to provide reusable functionality in your add-on product.
728-
This is because macros are hardwired to the TAL template language, and referring to them outside templates is difficult.
727+
The old way of doing this with TAL template language macros is discouraged as a way to provide reusable functionality in your add-on product. This is because macros are hardwired to the TAL template language, and referring to them outside templates is difficult.
729728

730729
If you ever need to change the template language, or mix in other template languages, you can do better when templates are a feature of a pure Python based view, and not vice versa.
731730
```
@@ -763,7 +762,7 @@ Then you can render the summary template in the main template associated with `P
763762
<div tal:replace="structure view/renderSummary" />
764763

765764
<div class="description">
766-
<div tal:condition="python:context.Description().decode('utf-8') != u'None'" tal:replace="structure context/Description" />
765+
<div tal:condition="python:context.Description().decode('utf-8') != 'None'" tal:replace="structure context/Description" />
767766
</div>
768767
```
769768
@@ -978,7 +977,7 @@ There are two different classes that share the same name `ViewPageTemplateFile`.
978977
```
979978
980979
- Zope [`BrowserView` source code](https://github.com/zopefoundation/zope.publisher/blob/dea3d4757390d04f6a5b53e696f08d0cab5f6023/src/zope/publisher/browser.py#L958).
981-
- [`Five` version](https://github.com/zopefoundation/Zope/blob/d1814d0a6bddb615629b552de10e9aa5ad30a6da/src/Products/Five/browser/__init__.py#L20).
980+
- [`Five` version](https://github.com/zopefoundation/Zope/blob/d1814d0a6bddb615629b552de10e9aa5ad30a6da/src/Products/Five/browser/__init__.py#L20) with .
982981
[`Products.Five`](https://github.com/zopefoundation/Zope/blob/master/src/Products/Five/doc/manual.txt) is a way to access some Zope 3 technologies from the Zope codebase, which is used by Plone.
983982
984983
Compare the differences in code.
@@ -999,7 +998,7 @@ The difference is that the `Five` version supports:
999998
- The `provider:` TAL expression.
1000999
- Other Plone-specific TAL expression functions, such as `test()`.
10011000
- Usually, Plone code needs the `Five` version of `ViewPageTemplateFile`.
1002-
- Some subsystems, notably the `z3c.form` package, expect the Zope 3 version of `ViewPageTemplateFile` instances.
1001+
- Some subsystems, notably the `z3c.form` package, expect the Zope 3 (not Five) version of `ViewPageTemplateFile` instances.
10031002
10041003
10051004
(classic-ui-views-and-automatic-member-variable-acquisition-wrapping-label)=

0 commit comments

Comments
 (0)