[Grok-dev] Grokker to remove development code?

Sylvain Viollon sylvain at infrae.com
Tue Dec 2 11:43:48 EST 2008

On Tue, 2 Dec 2008 16:02:41 +0100
Sebastian Ware <sebastian at urbantalk.se> wrote:


> I often have the odd class here and there that is mainly intended
> for development purposes. It would be great if I could mark them
> somehow in order to exclude them from being registered on the
> production server.
> Could this be easily achieved with a custom grokker?
> Is there any other best practice for this use case?

  You can use:


  And your code won't be grokked. I would do it like this. If you don't
like the name, can still do:
   developmentcode = grok.baseclass



Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20081202/886d6cbf/attachment.bin 

More information about the Grok-dev mailing list