Hello Justin,

from zope.component import hooks
site = hooks.getSite()

Beware, this will get set during traversal and is a thread_local.

Monday, August 2, 2010, 2:56:58 AM, you wrote:

JR> Howdy..

JR> Is there something better than getSiteManager().__parent__ for getting
JR> the context of a site / portal / app root?

JR> J
JR> _______________________________________________
JR> bluebream mailing list
JR> [email protected]
JR> https://mail.zope.org/mailman/listinfo/bluebream


-- 
Best regards,
 Adam GROSZER                            mailto:[email protected]
--
Quote of the day:
Designed with your mind in mind by people who have in mind what you should have 
in mind.

_______________________________________________
bluebream mailing list
[email protected]
https://mail.zope.org/mailman/listinfo/bluebream

Reply via email to