[Grok-dev] Using adaptation without running a web application.

Alec Munro alecmunro at gmail.com
Wed Jan 21 10:19:11 EST 2009

Thanks, that's just what I was looking for.


On Wed, Jan 21, 2009 at 11:09 AM, Paul Wilson <paulalexwilson at gmail.com> wrote:
> Hi!
>> I'm wondering what the best way to use adaptation in a script would
>> be. I would guess I would have to have a central method that did all
>> the necessary imports to set up the adapter registry, and run this at
>> the beginning of every script. I would probably be able to get by with
>> just Zope.interface.
>> But I'm very interested in suggestions for the best way to do this. I
>> may have to make this a web application in the future, so if there's a
>> way to make use of Grok's machinery without starting a web server,
>> that might be an ideal solution.
> This would involve using grokcore.component and a little bit of zcml
> configuration (via zope.configuration).
> Read: http://mail.zope.org/pipermail/grok-dev/2008-December/006743.html
> Coincidentally, I'm in the process of doing this too!
> Thanks,
> Paul

More information about the Grok-dev mailing list