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):
zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
)
property_sheets = PropertyDivergenceTester.property_sheets
def explain(self, simulation_movement):
......
......@@ -55,12 +55,8 @@ class QuantityDivergenceTester(PropertyDivergenceTester):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
, PropertySheet.DecimalOption
property_sheets = PropertyDivergenceTester.property_sheets + (
PropertySheet.DecimalOption,
)
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