[Grok-dev] The grokking process

Martijn Faassen faassen at startifact.com
Thu Oct 11 10:00:38 EDT 2007


Hey,

On 10/11/07, Lennart Regebro <regebro at gmail.com> wrote:
> 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.

Just to note that Guido and Lennart made it work this way; the view is
template language agnostic, so this appears possible. :)

Regards,

Martijn


More information about the Grok-dev mailing list