[CMF-checkins]
SVN: CMF/branches/jens_tools_as_utilities/CMFActionIcons/
- fix for the CMFActionIcons exportimport test failures
Jens Vagelpohl
jens at dataflake.org
Mon Jan 22 07:28:00 EST 2007
Log message for revision 72172:
- fix for the CMFActionIcons exportimport test failures
Changed:
U CMF/branches/jens_tools_as_utilities/CMFActionIcons/exportimport.py
U CMF/branches/jens_tools_as_utilities/CMFActionIcons/tests/test_exportimport.py
-=-
Modified: CMF/branches/jens_tools_as_utilities/CMFActionIcons/exportimport.py
===================================================================
--- CMF/branches/jens_tools_as_utilities/CMFActionIcons/exportimport.py 2007-01-22 08:45:05 UTC (rev 72171)
+++ CMF/branches/jens_tools_as_utilities/CMFActionIcons/exportimport.py 2007-01-22 12:27:57 UTC (rev 72172)
@@ -94,7 +94,7 @@
def listActionIconInfo(self):
""" Return a list of mappings describing the action icons.
"""
- sm = getSiteManager(self.getSite())
+ sm = getSiteManager(self._site)
ait = sm.getUtility(IActionIconsTool)
for action_icon in ait.listActionIcons():
yield {'category': action_icon.getCategory(),
Modified: CMF/branches/jens_tools_as_utilities/CMFActionIcons/tests/test_exportimport.py
===================================================================
--- CMF/branches/jens_tools_as_utilities/CMFActionIcons/tests/test_exportimport.py 2007-01-22 08:45:05 UTC (rev 72171)
+++ CMF/branches/jens_tools_as_utilities/CMFActionIcons/tests/test_exportimport.py 2007-01-22 12:27:57 UTC (rev 72172)
@@ -22,6 +22,7 @@
from Products.CMFActionIcons.interfaces import IActionIconsTool
from Products.CMFCore.testing import ExportImportZCMLLayer
+from Products.CMFCore.tests.base.utils import _setUpDefaultTraversable
from Products.GenericSetup.tests.common import BaseRegistryTests
from Products.GenericSetup.tests.common import DummyExportContext
from Products.GenericSetup.tests.common import DummyImportContext
@@ -63,6 +64,8 @@
from OFS.Folder import Folder
from Products.CMFActionIcons.ActionIconsTool import ActionIconsTool
+ _setUpDefaultTraversable()
+
self.root.site = Folder(id='site')
site = self.root.site
tool = ActionIconsTool()
More information about the CMF-checkins
mailing list