[Grok-dev] Bonked

Sebastian Ware sebastian at urbantalk.se
Fri Dec 12 07:12:14 EST 2008

12 dec 2008 kl. 12.00 skrev Paul Wilson:

> My questions are - is this even possible? If so, how do I write
> packages that are grokked by my grokker? I know (thanks to a previous
> question on Grok-Dev) I can register my grokker through meta.zcml, so
> will something similar need to be included in the component plugin
> packages that says "I'm a plugin package that is to be grokked by
> 'MyGrokker'!". I think ZCML is going to be the answer, but I haven't
> found any documentation covering how ZCML works in Grok.

Wouldn't you register the plugins in setup.py and then use a mechanism  
similar to "grok.Application"? I think you should look at how they  
have implemented automatic registration through grok.Application and  
(stoping it with) grok.baseclass(). Then I guess you could make the  
plugins available through named global utlities or something like  
that. Just a thought.

Mvh Sebastian

More information about the Grok-dev mailing list