Commit 13d6c761 authored by Yusei Tahara's avatar Yusei Tahara

Support scriptable key.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25752 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 563e805c
......@@ -1854,12 +1854,15 @@ class Catalog(Folder,
else:
# Maybe a related key...
related_key_definition = self.getRelatedKeyDefinition(key)
if related_key_definition is None:
# Unknown
search_key = None
else:
if related_key_definition is not None:
# It's a related key
search_key = self.getSearchKey(key, 'RelatedKey')
elif self.getScriptableKeyScript(key) is not None:
# It's a scriptable key
search_key = self.getSearchKey(key, 'RawKey')
else:
# Unknown
search_key = None
return search_key, related_key_definition
@profiler_decorator
......
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