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.
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".PropertyManagerstill uses DTML for its templating; DTML does not yet support views. Should we add view support inDocumentTemplate._DocumentTemplate.InstanceDict__getitem__?The most natural way would be to make
DocumentTemplatedependent onzope.componentand perform a view lookup whenever the key starts with@@. If this dependency is undesirable view lookup could be made conditional onzope.componentbeing installed.