Commit 0a817ea5 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid template document migration.

parent 8227cf75
from Products.ERP5Type.Base import WorkflowMethod
def Instance_migrateUrlString(self):
BLACKLIST_RELATIVE_URL_LIST = (
'software_instance_module/template_slave_instance',
'software_instance_module/template_software_instance',
'hosting_subscription_module/template_hosting_subscription',
)
@WorkflowMethod.disable
def real(self):
if self.getRelativeUrl() in BLACKLIST_RELATIVE_URL_LIST:
return
property_id = 'root_software_release_url'
if self.getPortalType() not in ('Hosting Subscription', 'Software Instance', 'Slave Instance'):
raise TypeError(self.getPortalType())
......
8
\ No newline at end of file
9
\ 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