[Zope3-Users] Re: very simple problem with getUtility

Philipp von Weitershausen philipp at weitershausen.de
Mon Jan 8 09:59:50 EST 2007

Rocky Burt wrote:
> On Sun, 2007-07-01 at 18:05 +0100, Christophe Combelles wrote:
>> But what did you mean as "set the site"?
>> do you mean with hooks.setSite() ?
> Yes ... keeping in mind that this happens automatically during traversal
> by IBeforeTraversalEvent handlers.

Right. setSite() should not be in app code, only in tests (if at all; 
they should probably be functional tests if you have the urge to use it).

http://worldcookery.com -- Professional Zope documentation and training
2nd edition of Web Component Development with Zope 3 is now shipping!

More information about the Zope3-users mailing list