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:
'type' : 'lines',
'default' : (),
'mode' : 'w' },
{ 'id' : 'testing_provider',
'description' : 'Defines whether a divergence tester acts as a testing provider.',
{ 'id' : 'divergence_provider',
'description' : 'Defines whether a divergence tester acts as a divergence provider.',
'type' : 'boolean',
'default' : 1,
'mode' : 'rw' },
......
......@@ -317,12 +317,11 @@ class RuleMixin:
quantity divergence testers
"""
if exclude_quantity:
# XXX-JPS name too generic - is it for divergence ? for somehting else ?
return filter(lambda x:x.isTestingProvider() and \
return filter(lambda x:x.isDivergenceProvider() and \
x.getTestedProperty() != 'quantity', self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()))
else:
return filter(lambda x:x.isTestingProvider(), self.objectValues(
return filter(lambda x:x.isDivergenceProvider(), self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()))
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