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

Avoid template document migration.

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