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
from Products.CMFCore.permissions import ManagePortal, View
from Products.CMFCore.utils import registerToolInterface, UniqueObject
from Products.CMFCore.utils import getToolByName
from Products.MimetypesRegistry.common import MimeTypeException
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from Products.PortalTransforms.data import datastream
......@@ -549,15 +550,11 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
reloaded.append((id, o.module))
try:
self._unmapTransform(o)
except ConflictError:
raise
except:
except MimeTypeException:
pass
try:
self._mapTransform(o)
except ConflictError:
raise
except:
except MimeTypeException:
pass
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