[Grok-dev] five.grok and static resource directory
sylvain at infrae.com
Mon Aug 25 05:43:07 EDT 2008
I make the static resource directory work under Zope 2 in five.grok
this week-end, in a branch of it. This works quite well.
But I still have a problem, because basically I need to replace the
registered DirectoryResourceFactory of Zope 3 by the one of Five, but I
don't see how to overrides the grokker which do it in grokcore.view.
There is two way I think to fix that:
- To move back the StaticGrokker to the grok package, so I can
create one in five.grok which don't conflict with it.
- To set different priority on both grokkers, the one in
five.grok will have on higher, and the on in grokcore.view will
register the resource directory only if there is no registration done
I prefer the first one, because it's cleaner I think, but that's
means if people use grokcore.view without grok or five.grok, they are
not going to have a static resource directory registered.
If you can give me your opinion, I would like to merge the branches
I have made with trunk, because I would like to use this feature !
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...
Size: 187 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20080825/d72df8ec/attachment.bin
More information about the Grok-dev