[BlueBream] get site / portal root

Adam GROSZER agroszer at gmail.com
Mon Aug 2 03:32:58 EDT 2010

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> _______________________________________________
JR> bluebream mailing list
JR> bluebream at zope.org
JR> https://mail.zope.org/mailman/listinfo/bluebream

Best regards,
 Adam GROSZER                            mailto:agroszer at gmail.com
Quote of the day:
Designed with your mind in mind by people who have in mind what you should have in mind.

More information about the bluebream mailing list