On 5/6/09 3:33 PM, Shane Hathaway wrote:
> Fernando Correa Neto wrote:
>> Adding new template engines to BFG require you to know python while in
>> GROK, it'd require you to grok grok first (which in would then
>> introduce the developer to ZCA) which is definitely a Zope3 thing.
> You hit on a point that I consider important.  One of the interesting
> things about ZCML (and hence BFG) is it's easy for any Python developer
> to write their own directives.  ZCML doesn't violate DRY, as I once
> thought it did, because if you find yourself writing repetitive
> directives, you can just create a custom directive in Python instead.
> Unfortunately, Grok obscures that simplicity.  It seems much harder to
> add new kinds of decorators than it is to add new kinds of ZCML directives.

It's actually not too bad.  Writing the "bfg_view" decorator was pretty simple 
(although I did find some bugs in martian that needed fixing while doing it).  
mostly found writing a grokker more pleasant than writing an equivalent ZCML 
handler.  But that may just be preference.

- C
Repoze-dev mailing list

Reply via email to