Commit 9e6d8779 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

fixup! py2/py3: dict_key does not have sort().

parent 3a5b46b4
...@@ -332,9 +332,7 @@ class Predicate(XMLObject): ...@@ -332,9 +332,7 @@ class Predicate(XMLObject):
criterion_dict[p].property = p criterion_dict[p].property = p
criterion_dict[p].min = self._range_criterion.get(p, (None, None))[0] criterion_dict[p].min = self._range_criterion.get(p, (None, None))[0]
criterion_dict[p].max = self._range_criterion.get(p, (None, None))[1] criterion_dict[p].max = self._range_criterion.get(p, (None, None))[1]
criterion_list = criterion_dict.values() return sorted(criterion_dict.values())
criterion_list.sort()
return criterion_list
security.declareProtected( Permissions.ModifyPortalContent, 'setCriterion' ) security.declareProtected( Permissions.ModifyPortalContent, 'setCriterion' )
def setCriterion(self, property, identity=None, min=None, max=None, **kw): def setCriterion(self, property, identity=None, min=None, max=None, **kw):
......
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