Commit a7a8e10a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Replace contentValues() by objectValues() for filling the Component registry dict.

parent 5a7887b9
......@@ -105,11 +105,11 @@ class ComponentDynamicPackage(ModuleType):
version_priority_set = set(portal.getVersionPriorityList())
# contentValues should not be used for a large number of objects, but
# objectValues should not be used for a large number of objects, but
# this is only done at startup or upon reset, moreover using the Catalog
# is too risky as it lags behind and depends upon objects being
# reindexed
for component in component_tool.contentValues(portal_type=self._portal_type):
for component in component_tool.objectValues(portal_type=self._portal_type):
# Only consider modified or validated states as state transition will
# be handled by component_validation_workflow which will take care of
# updating the registry
......
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