Commit 27355069 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

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

parent e29ba689
......@@ -31,6 +31,7 @@ from Products.PortalTransforms.utils import TransformException
from Products.PortalTransforms.utils import _www
from ZODB.POSException import ConflictError
from zLOG import WARNING
class TransformTool(UniqueObject, ActionProviderBase, Folder):
......@@ -546,6 +547,18 @@ class TransformTool(UniqueObject, ActionProviderBase, Folder):
o = getattr(self, id)
o.reload()
reloaded.append((id, o.module))
try:
self._unmapTransform(o)
except ConflictError:
raise
except:
pass
try:
self._mapTransform(o)
except ConflictError:
raise
except:
pass
return reloaded
# Policy handling methods
......
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