Commit 2c447c92 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Update attr_set which are removed during calculating hash

parent 8e2b9531
......@@ -2076,12 +2076,21 @@ class TemplateTool (BaseTool):
if isProperty:
obj_dict = object
else:
klass = object.__class__
classname = klass.__name__
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',
'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',))
......
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