Skip to content

Implement view support? #65

@d-maurer

Description

@d-maurer

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions