-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
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.
Reactions are currently unavailable