[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py - made sure we always can access the setup tool and run the upgrade step
Yvo Schubbe
y.2011 at wcm-solutions.de
Tue Sep 13 05:14:26 EST 2011
Log message for revision 122787:
- made sure we always can access the setup tool and run the upgrade step
Changed:
U Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py
-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py 2011-09-13 10:13:28 UTC (rev 122786)
+++ Products.CMFDefault/trunk/Products/CMFDefault/skins/zpt_generic/getMainGlobals.py 2011-09-13 10:14:26 UTC (rev 122787)
@@ -7,7 +7,9 @@
atool = getToolByName(script, 'portal_actions')
caltool = getToolByName(script, 'portal_calendar', None)
-mtool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IMembershipTool')
+# BBB: fallback for CMF 2.2 instances
+mtool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IMembershipTool',
+ getToolByName(script, 'portal_membership'))
ptool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')
utool = getToolByName(script, 'portal_url')
wtool = getToolByName(script, 'portal_workflow')
More information about the checkins
mailing list