Commit 6d89715d authored by Łukasz Nowak's avatar Łukasz Nowak

Drop not needed causality link.

parent edc5bc69
from Products.ERP5Type.Base import WorkflowMethod
def Instance_migrateUrlString(self):
def Instance_migrateData(self):
BLACKLIST_RELATIVE_URL_LIST = (
'software_instance_module/template_slave_instance',
'software_instance_module/template_software_instance',
......@@ -24,6 +24,8 @@ def Instance_migrateUrlString(self):
self.setUrlString(old_url)
assert(self.getUrlString() == old_url)
delattr(self.aq_base, property_id)
if self.getCausality() is not None:
self.setCausality(None)
if type(self) == type([]):
for o in self:
real(o[0])
......
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
tag = script.id\n
method_id = \'Instance_migrateUrlString\'\n
method_id = \'Instance_migrateData\'\n
for module in (\n
portal.hosting_subscription_module,\n
portal.software_instance_module,\n
......@@ -74,7 +74,7 @@ return \'Done.\'\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>00_ERP5Site_migrateUrlString</string> </value>
<value> <string>00_ERP5Site_migrateInstanceData</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>Instance_migrateUrlString</string> </value>
<value> <string>Instance_migrateData</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
......@@ -16,7 +16,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Instance_migrateUrlString</string> </value>
<value> <string>Instance_migrateData</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
10
\ No newline at end of file
11
\ 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