We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imagine the following scenario in Zope 2.13 using through the web PageTemplates:
Contents of PageTemplage named master:
master
<span metal:define-macro="foo">bar</span>
Contents of another PageTemplate:
<span metal:use-macro="here/master/macros/foo" /> <span metal:use-macro="python:here.master.macros['foo']" />
The latter PageTemplate renders as bar bar.
bar bar
On Zope 4 the same scenario behaves differently:
<span metal:use-macro="here/master/macros/foo" />
successfully renders bar but
bar
<span metal:use-macro="python:here.master.macros['foo']" />
raises an Unauthorized exception which manifests in a basic auth password dialog.
Unauthorized
The reason seems to be that the following classes have no security declarations:
This breaks using the __getitem__ style when using macros.
__getitem__
The text was updated successfully, but these errors were encountered:
macros
dataflake
Successfully merging a pull request may close this issue.
Imagine the following scenario in Zope 2.13 using through the web PageTemplates:
Contents of PageTemplage named
master
:Contents of another PageTemplate:
The latter PageTemplate renders as
bar bar
.On Zope 4 the same scenario behaves differently:
successfully renders
bar
butraises an
Unauthorized
exception which manifests in a basic auth password dialog.The reason seems to be that the following classes have no security declarations:
This breaks using the
__getitem__
style when using macros.The text was updated successfully, but these errors were encountered: