[Grok-dev] multiple grok wsgi applications possible?

Martin Aspeli optilude at gmx.net
Tue Dec 16 14:44:02 EST 2008

Michael Haubenwallner wrote:
> Lim Luong came up with this problem recently.
> The setup is like: create several grok applications, each with its own
> storage, configure them with pastescript to run as distinct wsgi apps
> from a paste http server (using paste urlmap to dispatch the requests).
> The admin screens work, access and writing to the different storages
> works too.
> The only problem is, that none but the last registered grok.Application
> is available from the 'applications' view (same for each of the wsgi
> apps). Trying to add one of the missing grok.Applications through the
> URL results in a ComponentLookupError.
> I am not sure if this is a problem of grok.adminui or something else.
> Anyone got an idea of how to handle that issue?

I think Chris McDonough from Repoze solved this problem somehow in 
repoze.bfg or some other part of the Repoze stack. Basically, you'll 
need one global component registry per application, and you'll need that 
to be selected on traversal and available as a thread-local. I think. :)


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

More information about the Grok-dev mailing list