Commit 99d1c52c authored by Antoine Catton's avatar Antoine Catton

Use default parameter of get method instead of “à la shell” expressions.

parent b2ec658b
...@@ -59,11 +59,11 @@ portal = person.getPortalObject()\n ...@@ -59,11 +59,11 @@ portal = person.getPortalObject()\n
kwargs = state_change.kwargs\n kwargs = state_change.kwargs\n
software_release_url_string = state_change.kwargs[\'software_release\']\n software_release_url_string = state_change.kwargs[\'software_release\']\n
software_title = kwargs["software_title"]\n software_title = kwargs["software_title"]\n
software_type = kwargs.get("software_type") or "RootSoftwareInstance"\n software_type = kwargs.get("software_type", "RootSoftwareInstance")\n
instance_xml = kwargs["instance_xml"]\n instance_xml = kwargs["instance_xml"]\n
sla_xml = kwargs.get("sla_xml") or ""\n sla_xml = kwargs.get("sla_xml", "")\n
is_slave = kwargs.get("shared", False)\n is_slave = kwargs.get("shared", False)\n
state = kwargs.get(\'state\') or \'started\'\n state = kwargs.get(\'state\', \'started\')\n
\n \n
sale_order_portal_type = "Sale Order"\n sale_order_portal_type = "Sale Order"\n
sale_order_line_portal_type = "Sale Order Line"\n sale_order_line_portal_type = "Sale Order Line"\n
......
447 448
\ No newline at end of file \ 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