Commit 5b2fa0a8 authored by Aurel's avatar Aurel

putting object from integration module into thrash does not work as it might...

putting object from integration module into thrash does not work as it might try to get all from web-services
parent 5f2a5176
...@@ -862,6 +862,10 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -862,6 +862,10 @@ class ObjectTemplateItem(BaseTemplateItem):
""" """
Backup the object in portal trash if necessery and return its subobjects Backup the object in portal trash if necessery and return its subobjects
""" """
if "portal_integrations" in container_path and "module" in object_id:
# XXX It is impossible to backup integration module as
# it will call the request and try to get remote data
return
p = self.getPortalObject() p = self.getPortalObject()
if trashbin is None: # must return subobjects if trashbin is None: # must return subobjects
subobject_dict = {} subobject_dict = {}
......
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