[Grok-dev] grok directive for only grokking during development mode

Sebastian Ware sebastian at urbantalk.se
Tue Feb 5 14:58:08 EST 2008


5 feb 2008 kl. 20.28 skrev Martijn Faassen:

> I think it would be useful to have a directive that can be put on a  
> component so it only gets grokked during development mode, not in  
> production mode. Something like this:
>
> class MyView(grok.View):
>   grok.devel()
>
> 'MyView' would only be grokked and thus only registered in  
> development mode, not in production mode. This requires us figuring  
> out what development-mode and production-mode currently mean in Zope  
> and how to detect it during the grokking process...



devzope => run in developer mode
runzope => run in production mode

mvh Sebastian


More information about the Grok-dev mailing list