[Grok-dev] checked in: megrok.resourcelibrary

Wichert Akkerman wichert at wiggy.net
Wed Aug 6 13:30:57 EDT 2008


Previously Martijn Faassen wrote:
> Hi there,
> 
> I just checked in a package called megrok.resourcelibrary. It wraps 
> zc.resourcelibrary and all the real functionality is in that library, 
> this just grokifies it. In essence megrok.resourcelibrary lets you set 
> up your own new 'static' directories.
> 
> What you can do with this is the following:
> 
> import megrok.resourcelibrary
> 
> class MyResources(megrok.resourcelibrary.ResourceLibrary):
>     megrok.resourcelibrary.directory('some_directory')


Isn't this something that could be setup using config.ini or a wsgi
middleware layer? It feels like using python to configure a deployment.

WIchert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Grok-dev mailing list