#3: View classes in front of every template

Contents
  1. Motivation
  2. Assumptions
  3. Proposal
  4. Participants
by Reinout van Rees last modified Jan 22, 2010 06:26 AM

Put zope3 view classes in front of every dtml template and clean up the templates with that.

Proposed by
Reinout van Rees
Proposal type
Architecture
Assigned to release
State
being-discussed

Motivation

There's lots of logic in the dtml templates. Part of the logic is in ArchetypesGenerator. Part of the logic is in the XMI parser. That is a mess. Putting a view class in front of every dtml template gives us a specific location to clean up the mess and where to put the template-related logic.

Assumptions

The cleaning up of the ArchetypesGenerator and the xmiparser isn't part of this proposal, though it enables it.

Proposal

  • Add part of the zope3 mechanism (view classes, interfaces) to archgenxml.
  • Create a mostly empty view class for every .dtml file.
  • Take the logic out of the dtml file and put it into the view class.

Participants

Reinout van Rees

Comments (0)