[Grok-dev] The grokking process

Fernando Correa Neto fcdoth at gmail.com
Thu Oct 11 10:29:23 EDT 2007


On 10/11/07, Martijn Faassen <faassen at startifact.com> wrote:
> 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. :)

Yeah I know. The did all the work in the template level and for the
simple extension case, I though it would be too much.
Note, I am not saying that is in the core of grok is wrong, I am just
saying that for my little project I didn't plan to hack the core.


More information about the Grok-dev mailing list