Commit 18e7b0f6 authored by Łukasz Nowak's avatar Łukasz Nowak

Use "get('foo') or default", as kwargs can have stored 'nothings'.

parent 246e6833
...@@ -59,9 +59,9 @@ portal = person.getPortalObject()\n ...@@ -59,9 +59,9 @@ 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", "RootSoftwareInstance")\n software_type = kwargs.get("software_type") or "RootSoftwareInstance"\n
instance_xml = kwargs["instance_xml"]\n instance_xml = kwargs["instance_xml"]\n
sla_xml = kwargs.get("sla_xml", "")\n sla_xml = kwargs.get("sla_xml") or ""\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
......
377 378
\ 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