[Grok-dev] How does the grokkers actually work in grok?

Fernando Correa Neto fcdoth at gmail.com
Thu Oct 4 23:44:06 EDT 2007

Hello everyone,

I've been playing with a extension for grok that will allow the use of
Buffet (megrok.buffet acutally).
I've read all the documentation about martian and I understand how the
grokkers works, the problem is when it comes to my extension.
So far I have something similiar to this:



class View(grok.View):
    """code that renders the view"""


class BuffetViewGrokker(martian.ClassGrokker):
    class_component = View

    def grok(...):
        """setup code"""

    def register(...):
        """It must be here"""

With this I can perfectly subclass from megrok.buffet.View but the
problem is that I need to setup some code for that.
How does or how do I know that grok instanciate the BuffetViewGrokker?
I suspect it is not been grokked.


More information about the Grok-dev mailing list