[Grok-dev] Grokker to remove development code?

Brandon Craig Rhodes brandon at rhodesmill.org
Wed Dec 3 14:00:35 EST 2008


Martijn Faassen <faassen at startifact.com> writes:

> What we *should* do is extend martian so we can tag our classes:
>
> class MyView(grok.View):
>      grok.tag('dev')

Instead of introducing yet another labelling axis, could marker
interfaces be used instead?

 class MyView(grok.View):
    grok.implements(IDevelopmentOnly)

 <grok:grok package="." interface_exclude="IDevelopmentOnly">

-- 
Brandon Craig Rhodes   brandon at rhodesmill.org   http://rhodesmill.org/brandon


More information about the Grok-dev mailing list