[Grok-dev] The grokking process
Leonardo Rochael Almeida
leorochael at gmail.com
Tue Oct 9 17:00:22 EDT 2007
On 10/9/07, Fernando Correa Neto <fcdoth at gmail.com> wrote:
> On 10/9/07, Lennart Regebro <regebro at gmail.com> wrote:
> > On 10/9/07, Fernando Correa Neto <fcdoth at gmail.com> wrote:
> > [...]
> > Why do you need to subclass grok.View?
> 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.
At worst, you can refactor grok.View into grok.ViewBase and grok.View
that inherits from it and to whom the original grokker is registered,
then you inherit from grok.ViewBase in your buffet enabled view.
More information about the Grok-dev