Commit f4e24ce8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

stop using 'ERP5Site_getUpgraderSignature(key)' but use...

stop using 'ERP5Site_getUpgraderSignature(key)' but use 'ERP5Site_getUpgraderSignature().get(key, default_value)' instead for better understandability of codes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbe0818c
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>message_list = []\n
expect_expression_dict = context.ERP5Site_getUpgraderSignature(\'catalog_filter_dict\')\n
expect_expression_dict = context.ERP5Site_getUpgraderSignature().get(\'catalog_filter_dict\', None)\n
if expect_expression_dict is None:\n
# If key is not provided, ignore.\n
return []\n
......
......@@ -68,7 +68,7 @@ if not upgrade:\n
\n
portal = context.getPortalObject()\n
portal_workflow = portal.portal_workflow\n
workflow_id_list = portal.ERP5Site_getUpgraderSignature(\'update_security_workflow_id_list\', [])\n
workflow_id_list = portal.ERP5Site_getUpgraderSignature().get(\'update_security_workflow_id_list\', [])\n
for workflow_id in workflow_id_list:\n
workflow = getattr(portal_workflow, workflow_id, None)\n
if workflow is not None:\n
......@@ -79,7 +79,7 @@ message_list.append(\n
(\'\\n\\t\'.join(workflow_id_list)))\n
\n
types_tool = portal.portal_types\n
portal_type_list = portal.ERP5Site_getUpgraderSignature(\'update_role_portal_type_list\', [])\n
portal_type_list = portal.ERP5Site_getUpgraderSignature().get(\'update_role_portal_type_list\', [])\n
\n
for pt in portal_type_list:\n
portal_type_document = types_tool.getTypeInfo(pt)\n
......
579
\ No newline at end of file
580
\ No newline at end of file
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