Commit 817215e2 authored by Nicolas Dumazet's avatar Nicolas Dumazet

contentIds does not seems to be able to filter on objects Ids


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32826 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 289b8568
...@@ -178,7 +178,6 @@ class SupplyLine(Path, XMLMatrix): ...@@ -178,7 +178,6 @@ class SupplyLine(Path, XMLMatrix):
(price_parameter, predicate_id_start_with) (price_parameter, predicate_id_start_with)
# XXX Hardcoded portal type name # XXX Hardcoded portal type name
predicate_list = self.contentIds(filter={'portal_type': 'Predicate'}) predicate_list = self.contentIds(filter={'portal_type': 'Predicate'})
# XXX filtering can be done with contentIds ?
result = [x for x in predicate_list \ result = [x for x in predicate_list \
if x.startswith(predicate_id_start_with)] if x.startswith(predicate_id_start_with)]
return result return result
......
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