Commit ecca0183 authored by Jérome Perrin's avatar Jérome Perrin

Don't try to initialise Transforms (from portal_transforms) that couldn't have

been initialized. A typicall cause is that this transform rely on an external
program that is not present on the machine.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19477 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72ef5c87
...@@ -800,6 +800,8 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -800,6 +800,8 @@ class ObjectTemplateItem(BaseTemplateItem):
# portal transforms specific initialization # portal transforms specific initialization
elif obj.meta_type in ('Transform', 'TransformsChain'): elif obj.meta_type in ('Transform', 'TransformsChain'):
assert container.meta_type == 'Portal Transforms' assert container.meta_type == 'Portal Transforms'
# skip transforms that couldn't have been initialized
if obj.title != 'BROKEN':
container._mapTransform(obj) container._mapTransform(obj)
# now put original order group # now put original order group
# we remove object not added in forms # we remove object not added in forms
......
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