Skip to content
New issue

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

Implement view support? #65

Open
d-maurer opened this issue Jul 29, 2022 · 1 comment
Open

Implement view support? #65

d-maurer opened this issue Jul 29, 2022 · 1 comment

Comments

@d-maurer
Copy link
Contributor

Should we implement view support?

This issue is motivated by "https://community.plone.org/t/adding-a-portal-method-the-right-way/15478/5": support views as PropertyManager "select variable".

PropertyManager still uses DTML for its templating; DTML does not yet support views. Should we add view support in DocumentTemplate._DocumentTemplate.InstanceDict__getitem__?

The most natural way would be to make DocumentTemplate dependent on zope.component and perform a view lookup whenever the key starts with @@. If this dependency is undesirable view lookup could be made conditional on zope.component being installed.

@dataflake
Copy link
Member

±0 I don't mind either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants