From 1d6396596f36a98877f326f3e7544fa99fe311b2 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 16 Dec 2009 13:37:01 +0000 Subject: [PATCH] rename from testing_provider to divergence_provider. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31332 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/PropertySheet/DivergenceTester.py | 4 ++-- product/ERP5/mixin/rule.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/product/ERP5/PropertySheet/DivergenceTester.py b/product/ERP5/PropertySheet/DivergenceTester.py index eafd4af387..1f1693009f 100644 --- a/product/ERP5/PropertySheet/DivergenceTester.py +++ b/product/ERP5/PropertySheet/DivergenceTester.py @@ -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' }, diff --git a/product/ERP5/mixin/rule.py b/product/ERP5/mixin/rule.py index c7fa48476d..3e849f0895 100644 --- a/product/ERP5/mixin/rule.py +++ b/product/ERP5/mixin/rule.py @@ -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): -- 2.30.9