From: bmh <svn...@pl...> - 2005-10-29 05:29:58
|
Author: bmh Date: Sat Oct 29 05:29:05 2005 New Revision: 8346 Modified: CMFPlone/branches/goldegg-phase-1/setuphandlers.py Log: - Use context.getSite() method to get the portal object - Temporarily comment out non-working lines Modified: CMFPlone/branches/goldegg-phase-1/setuphandlers.py ============================================================================== --- CMFPlone/branches/goldegg-phase-1/setuphandlers.py (original) +++ CMFPlone/branches/goldegg-phase-1/setuphandlers.py Sat Oct 29 05:29:05 2005 @@ -105,8 +105,9 @@ Provisional handler that does initialization that is not yet taken care of by other handlers. """ + site = context.getSite() + gen = PloneGenerator() - p = getToolByName(context, 'portal_url').getPortalObject() - gen.customizePortalOptions(p) - gen.setupPortalContent(p) - gen.setupNavTree(p) + gen.customizePortalOptions(site) + #gen.setupPortalContent(site) + #gen.setupNavTree(site) |