[Grok-dev] Pluggable Grok API
Sylvain Viollon
sylvain at infrae.com
Mon Mar 26 12:05:23 UTC 2012
Hello,
We were talking since a while to have a way to automatically import things in the grok top-level package if other packages are present.
I would really like to see this coming through.
We could use the interfaces IGrok..API defined, that are used to define __all__ in the __init__ of each package, as entry-point values in setuptools. After we could write a piece of code that does the import based on that, in a package, if the name is not already defined (so we can still override things, like View in grok). That could be doable.
What do you think of this idea ?
Regards,
Sylvain,
PS: And we coud throw away formlib !
--
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands
More information about the Grok-dev
mailing list