[Grok-dev] getUtility requires context!?

Achim Domma domma at procoders.net
Thu Jul 22 15:20:50 EDT 2010


Am 22.07.2010 um 20:03 schrieb Leonardo Rochael Almeida:

> To make this work in with the command line interpreter, you need to do
> this explicitly. Untested snippet to match your example:
> 
>>> from zope.site.hooks import setSite
>>> setSite(root['test'])

Thanks for the fast answer! Works perfectly!

cheers,
Achim


More information about the Grok-dev mailing list