Commit 814b5a2e authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Łukasz Nowak

Do not store Persistent object in Component registry cache.

(cherry picked from commit e7967448c588f4b5743dfca28d9be3ab47ba05c9)

Conflicts:
	product/ERP5Type/dynamic/component_package.py
parent 9ad4c8d4
...@@ -114,14 +114,14 @@ class ComponentDynamicPackage(ModuleType): ...@@ -114,14 +114,14 @@ class ComponentDynamicPackage(ModuleType):
except AttributeError: except AttributeError:
# XXX: Accessors may have not been generated yet # XXX: Accessors may have not been generated yet
pass pass
else:
if validation_state_tuple in ('modified', 'validated'): if validation_state_tuple in ('modified', 'validated'):
version = component.getVersion(validated_only=True) version = component.getVersion(validated_only=True)
# The versions should have always been set on ERP5Site property # The versions should have always been set on ERP5Site property
# beforehand # beforehand
if version in version_priority_set: if version in version_priority_set:
reference = component.getReference(validated_only=True) reference = component.getReference(validated_only=True)
self.__registry_dict.setdefault(reference, {})[version] = component.getId() self.__registry_dict.setdefault(reference, {})[version] = component.getId()
return self.__registry_dict return self.__registry_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