Commit 069a922b authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed a bug in test().

Added SortIndex PropertySheet.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d49c04d8
...@@ -92,6 +92,7 @@ class PredicateGroup(Folder, Predicate): ...@@ -92,6 +92,7 @@ class PredicateGroup(Folder, Predicate):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.Predicate , PropertySheet.Predicate
, PropertySheet.SortIndex
) )
# Declarative interfaces # Declarative interfaces
...@@ -142,7 +143,7 @@ identify a bank account.""" ...@@ -142,7 +143,7 @@ identify a bank account."""
tested_base_category = {} tested_base_category = {}
for c in self.getMembershipCriterionCategoryList(): for c in self.getMembershipCriterionCategoryList():
bc = c.split('/')[0] bc = c.split('/')[0]
if not bc in tested_base_category[bc]: if not bc in tested_base_category.keys() :
tested_base_category[bc] = 0 tested_base_category[bc] = 0
if bc in multimembership_criterion_base_category_list: if bc in multimembership_criterion_base_category_list:
tested_base_category[bc] = tested_base_category[bc] and context.isMemberOf(c) tested_base_category[bc] = tested_base_category[bc] and context.isMemberOf(c)
...@@ -241,4 +242,3 @@ identify a bank account.""" ...@@ -241,4 +242,3 @@ identify a bank account."""
""" """
return self return self
\ No newline at end of file
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