get the portal object

by zet — last modified Jul 10, 2013 01:46 AM

 

portal = getToolByName(self.context, 'portal_url').getPortalObject()

 

or

 

from zope.app.component.hooks import getSite

portal = getSite.()

 

get title of site

portal = getSite.().Title()