Commit 66c77869 authored by Łukasz Nowak's avatar Łukasz Nowak

- avoid code repetition in definition of property sheets


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28336 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ecbd5906
...@@ -54,12 +54,7 @@ class CategoryDivergenceTester(PropertyDivergenceTester): ...@@ -54,12 +54,7 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
zope.interface.implements( interfaces.IDivergenceTester, ) zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = PropertyDivergenceTester.property_sheets
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
)
def explain(self, simulation_movement): def explain(self, simulation_movement):
......
...@@ -55,12 +55,8 @@ class QuantityDivergenceTester(PropertyDivergenceTester): ...@@ -55,12 +55,8 @@ class QuantityDivergenceTester(PropertyDivergenceTester):
# Declarative properties # Declarative properties
property_sheets = ( PropertySheet.Base property_sheets = PropertyDivergenceTester.property_sheets + (
, PropertySheet.XMLObject PropertySheet.DecimalOption,
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
, PropertySheet.DecimalOption
) )
def explain(self, simulation_movement): def explain(self, simulation_movement):
......
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