Commit 7c7bb340 authored by Aurel's avatar Aurel

remove backupObject in PortalTypeItem to use the generic one


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64bc1cdf
...@@ -1049,26 +1049,6 @@ class PortalTypeTemplateItem(ObjectTemplateItem): ...@@ -1049,26 +1049,6 @@ class PortalTypeTemplateItem(ObjectTemplateItem):
context.portal_workflow.manage_changeWorkflows(default_chain, context.portal_workflow.manage_changeWorkflows(default_chain,
props=chain_dict) props=chain_dict)
def _backupObject(self, action, trashbin, container_path, object_id, **kw):
"""
Backup portal type and keep the workflow chain.
"""
subobjects_dict = {}
# XXX btsave is for backward compatibility
if action == 'backup' or action == 'btsave':
# Get the chain value
# (default_chain, chain_dict) = self._getChainByType(self)
# chain = chain_dict['chain_%s' % object_id]
# Backup the portal type
subobjects_dict = ObjectTemplateItem._backupObject(self, action, trashbin, container_path,
object_id, **kw)
return subobjects_dict
# Restore the chain to the backuped portal type
# (default_chain, chain_dict) = self._getChainByType(self)
# chain_dict['chain_%s' % backup_id] = chain
# self.portal_workflow.manage_changeWorkflows(default_chain,
# props=chain_dict)
def _importFile(self, file_name, file): def _importFile(self, file_name, file):
if 'workflow_chain_type.xml' in file_name: if 'workflow_chain_type.xml' in file_name:
# import workflow chain for portal_type # import workflow chain for portal_type
......
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