Commit 1d639659 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rename from testing_provider to divergence_provider.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31332 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abff222d
...@@ -39,8 +39,8 @@ class DivergenceTester: ...@@ -39,8 +39,8 @@ class DivergenceTester:
'type' : 'lines', 'type' : 'lines',
'default' : (), 'default' : (),
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'testing_provider', { 'id' : 'divergence_provider',
'description' : 'Defines whether a divergence tester acts as a testing provider.', 'description' : 'Defines whether a divergence tester acts as a divergence provider.',
'type' : 'boolean', 'type' : 'boolean',
'default' : 1, 'default' : 1,
'mode' : 'rw' }, 'mode' : 'rw' },
......
...@@ -317,12 +317,11 @@ class RuleMixin: ...@@ -317,12 +317,11 @@ class RuleMixin:
quantity divergence testers quantity divergence testers
""" """
if exclude_quantity: if exclude_quantity:
# XXX-JPS name too generic - is it for divergence ? for somehting else ? return filter(lambda x:x.isDivergenceProvider() and \
return filter(lambda x:x.isTestingProvider() and \
x.getTestedProperty() != 'quantity', self.objectValues( x.getTestedProperty() != 'quantity', self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList())) portal_type=self.getPortalDivergenceTesterTypeList()))
else: else:
return filter(lambda x:x.isTestingProvider(), self.objectValues( return filter(lambda x:x.isDivergenceProvider(), self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList())) portal_type=self.getPortalDivergenceTesterTypeList()))
def _getMatchingTesterList(self): def _getMatchingTesterList(self):
......
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