Commit 7bc94655 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Update attr_set which are removed during calculating hash

parent f5208627
...@@ -2073,12 +2073,21 @@ class TemplateTool (BaseTool): ...@@ -2073,12 +2073,21 @@ class TemplateTool (BaseTool):
if isProperty: if isProperty:
obj_dict = object obj_dict = object
else: else:
klass = object.__class__ klass = object.__class__
classname = klass.__name__ classname = klass.__name__
obj_dict = object.__dict__.copy() obj_dict = object.__dict__.copy()
# If the dict is empty, do calculate hash of None as it stays same on
# one platform and in any case its impossiblt to move live python
# objects from one seeion to another
if not bool(obj_dict):
return hash(None)
attr_set = {'_dav_writelocks', '_filepath', '_owner', '_related_index', attr_set = {'_dav_writelocks', '_filepath', '_owner', '_related_index',
'last_id', 'uid', '_mt_index', '_count', '_tree', 'last_id', 'uid', '_mt_index', '_count', '_tree',
'__ac_local_roles__', '__ac_local_roles_group_id_dict__'} '__ac_local_roles__', '__ac_local_roles_group_id_dict__',
'workflow_history',}
attr_set.update(('isIndexable',)) attr_set.update(('isIndexable',))
......
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