Commit 680f69a9 authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Romain Courteaud

WIP: Hacks to be removed.

parent 23c71629
......@@ -165,6 +165,10 @@ def generatePortalTypeClass(site, portal_type_name):
is_partially_generated = True
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
# type provider other than Types Tool.
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