Commit 3adda0f2 authored by Jérome Perrin's avatar Jérome Perrin

remove commented out compatibility code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31755 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fdc75d42
...@@ -38,7 +38,7 @@ class Predicate: ...@@ -38,7 +38,7 @@ class Predicate:
can be provides to scripts (this reduces duplication of code) can be provides to scripts (this reduces duplication of code)
""" """
_properties = ( _properties = (
{ 'id' : 'criterion_property', { 'id' : 'criterion_property',
'description' : 'The properties to test identity or range on', 'description' : 'The properties to test identity or range on',
'type' : 'tokens', 'type' : 'tokens',
...@@ -46,7 +46,6 @@ class Predicate: ...@@ -46,7 +46,6 @@ class Predicate:
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'membership_criterion_base_category', # OR, we check if we have one { 'id' : 'membership_criterion_base_category', # OR, we check if we have one
# of theses categories # of theses categories
#'storage_id' : 'domain_base_category_list', # Compatibility with legacy implementation
'description' : 'The base categories to test', 'description' : 'The base categories to test',
'type' : 'tokens', 'type' : 'tokens',
'default' : (), 'default' : (),
...@@ -58,37 +57,18 @@ class Predicate: ...@@ -58,37 +57,18 @@ class Predicate:
'default' : (), 'default' : (),
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'membership_criterion_category', { 'id' : 'membership_criterion_category',
#'storage_id' : 'predicate_value', # Compatibility with legacy implementation
'description' : 'The predicate categories', 'description' : 'The predicate categories',
'type' : 'lines', 'type' : 'lines',
'default' : (), 'default' : (),
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'test_method_id', { 'id' : 'test_method_id',
'description' : 'A python method to implement additional tests', 'description' : 'A python method to implement additional tests',
'type' : 'lines', # Only a list of method ids is feasable for lines 'type' : 'lines', # Only a list of method ids is feasable for lines
'mode' : 'w' }, 'mode' : 'w' },
#{ 'id' : 'parameter_string', # XXX Not feasable for AND #{ 'id' : 'parameter_string', # XXX Not feasable for AND
# 'description' : 'A string defining default values for parameters (python syntax)', # 'description' : 'A string defining default values for parameters (python syntax)',
# 'type' : 'string', # 'type' : 'string',
# 'mode' : 'w' }, # 'mode' : 'w' },
# Compatibility with legacy implementation
# { 'id' : 'predicate_property',
# 'description' : 'The properties to use for the predicate',
# 'type' : 'string',
# 'mode' : 'w' }, # Make sure previous code still works, so w mode
# { 'id' : 'predicate_operator',
# 'description' : 'The operator to use for the predicate',
# 'type' : 'string',
# 'mode' : 'w' }, # Make sure previous code still works, so w mode
# { 'id' : 'predicate_value',
# 'description' : 'The value to use for the predicate' \
# 'this value can be multiple',
# 'type' : 'lines',
# 'mode' : 'w' }, # Make sure previous code still works, so w mode
# { 'id' : 'predicate_type',
# 'description' : 'The type of the value',
# 'type' : 'string',
# 'mode' : 'w' }, # Make sure previous code still works, so w mode
) )
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