Commit a1e032c9 authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP: Hacks to be removed.

parent ec95bce7
...@@ -165,6 +165,10 @@ def generatePortalTypeClass(site, portal_type_name): ...@@ -165,6 +165,10 @@ def generatePortalTypeClass(site, portal_type_name):
is_partially_generated = True is_partially_generated = True
return is_partially_generated, ((klass,), [], [], attribute_dict) return is_partially_generated, ((klass,), [], [], attribute_dict)
# TODO-BEFORE-MERGE: Hack for legacy Configurator Workflow
if portal_type_name == 'Variable':
portal_type_name = 'Workflow Variable'
# Do not use __getitem__ (or _getOb) because portal_type may exist in a # Do not use __getitem__ (or _getOb) because portal_type may exist in a
# type provider other than Types Tool. # type provider other than Types Tool.
portal_type = getattr(site.portal_types, portal_type_name, None) portal_type = getattr(site.portal_types, portal_type_name, None)
......
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