Commit be35539b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! PortalTransforms: refresh transforms in internal structure in reloadTransforms().

parent 76b2d3f5
...@@ -13,6 +13,7 @@ from Products.CMFCore.ActionProviderBase import ActionProviderBase ...@@ -13,6 +13,7 @@ from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.permissions import ManagePortal, View from Products.CMFCore.permissions import ManagePortal, View
from Products.CMFCore.utils import registerToolInterface, UniqueObject from Products.CMFCore.utils import registerToolInterface, UniqueObject
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.MimetypesRegistry.common import MimeTypeException
from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from Products.PortalTransforms.data import datastream from Products.PortalTransforms.data import datastream
...@@ -549,15 +550,11 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder): ...@@ -549,15 +550,11 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
reloaded.append((id, o.module)) reloaded.append((id, o.module))
try: try:
self._unmapTransform(o) self._unmapTransform(o)
except ConflictError: except MimeTypeException:
raise
except:
pass pass
try: try:
self._mapTransform(o) self._mapTransform(o)
except ConflictError: except MimeTypeException:
raise
except:
pass pass
return reloaded return reloaded
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment