* Paolo Bizzarri <p.bizzarri@icube.it> [2004-07-19 17:43]:
Hi everyone,
we are trying to implement a concept like Model-View-Controller in our application, PAFlow.
The advantages are many:
- good domain model for our system, (no presentation code);
- all the presentation logic in the controller;
- no presentation logic in the page template associated;
- no business logic in the page template (only getMethods from the controller);
- all references from the template are to the controller only;
- no need to pass arguments in hidden fields or in the URL;
- real objects, not fields in a session, for storing information.
The only real doubt is that this approach seems not really Zopish, so we were wondering if there are other, more Zopish way of doing things.
Seems Zope enough for me, what makes you think otherwise? PageTemplates by design discourage embedding domain logic, and most product developers put their business logic in Python classes. So already there's your model and view. Not many product developers incorporate the idea of a controller into their products, because it only begins to make sense and worth the effort in more involved business apps. -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za