[BlueBream] get site / portal root
jryan at reliefgarden.org
Tue Aug 3 01:11:48 EDT 2010
On Mon, Aug 2, 2010 at 12:32 AM, Adam GROSZER <agroszer at gmail.com> wrote:
> Hello Justin,
> from zope.component import hooks
> site = hooks.getSite()
Sweet! Thanks Adam..
> Beware, this will get set during traversal and is a thread_local.
Good to know. I just basically want to grab the site's name / title
and use it in some places of the ui. :)
More information about the bluebream