Commit e9e8c843 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Inherit from predicate. List property sheets explicitely.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30612 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7971fe52
# -*- coding: utf-8 -*-
############################################################################# #############################################################################
# #
# Copyright (c) 2006-2008 Nexedi SA and Contributors. All Rights Reserved. # Copyright (c) 2006-2008 Nexedi SA and Contributors. All Rights Reserved.
...@@ -29,12 +30,13 @@ ...@@ -29,12 +30,13 @@
import zope.interface import zope.interface
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5.Document.Predicate import Predicate
from Products.ERP5Type.DivergenceMessage import DivergenceMessage from Products.ERP5Type.DivergenceMessage import DivergenceMessage
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.PropertyDivergenceTester import \ from Products.ERP5.Document.PropertyDivergenceTester import \
PropertyDivergenceTester PropertyDivergenceTester
class CategoryDivergenceTester(PropertyDivergenceTester): class CategoryDivergenceTester(Predicate):
""" """
The purpose of this divergence tester is to check the The purpose of this divergence tester is to check the
consistency between delivery movement and simulation movement consistency between delivery movement and simulation movement
...@@ -54,8 +56,13 @@ class CategoryDivergenceTester(PropertyDivergenceTester): ...@@ -54,8 +56,13 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
zope.interface.implements( interfaces.IDivergenceTester, ) zope.interface.implements( interfaces.IDivergenceTester, )
# Declarative properties # Declarative properties
property_sheets = PropertyDivergenceTester.property_sheets property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
, PropertySheet.SolverSelection
)
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