Commit 82d2bf14 authored by Ayush Tiwari's avatar Ayush Tiwari

BusinessTemplate: Refactor mistake for modified_object_list assignment

parent 84451d42
...@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): ...@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
if new_object != old_object: if new_object != old_object:
modified_object_list[path] = 'Modified', self.getTemplateTypeName() modified_object_list[path] = 'Modified', self.getTemplateTypeName()
else: # new object else: # new object
modified_object_list.update[path] = 'New', self.getTemplateTypeName() modified_object_list[path] = 'New', self.getTemplateTypeName()
# get removed object # get removed object
for path in installed_item._objects: for path in installed_item._objects:
if path not in self._objects: if path not in self._objects:
modified_object_list.update[path] = 'Removed', self.getTemplateTypeName() modified_object_list[path] = 'Removed', self.getTemplateTypeName()
return modified_object_list return modified_object_list
def _importFile(self, file_name, file): def _importFile(self, file_name, file):
......
  • This change is related to the previous commit made regarding maintaining consistency for modified_object_list: e46ade7a

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