[Grok-dev] The grokking process

Lennart Regebro regebro at gmail.com
Thu Oct 11 09:36:18 EDT 2007


On 10/9/07, Fernando Correa Neto <fcdoth at gmail.com> wrote:
> Because I am going to plug the buffet logic in the _render_template
> method and I would like to keep the all the other methods around.
> Anyway, I was just avoiding code duplication and according to my
> tests, it only happens when I subclass from grok.View.

Wouldn't it be a BuffetTemplate class, or something? It should do the
logic. The view should know nothing about templates.

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Grok-dev mailing list