From 08b76817b4137a9e412b5d57e9380effe6bc22bf Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Fri, 7 Sep 2012 17:55:00 +0900 Subject: [PATCH] Fix migration of some Constraints. --- product/ERP5/Document/AccountTypeConstraint.py | 1 + product/ERP5/Document/AttributeUnicityConstraint.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/Document/AccountTypeConstraint.py b/product/ERP5/Document/AccountTypeConstraint.py index f6c287ef36..0a921ceede 100644 --- a/product/ERP5/Document/AccountTypeConstraint.py +++ b/product/ERP5/Document/AccountTypeConstraint.py @@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin): break return error_list + _message_id_tuple = ('message_inconsistent_account_type',) diff --git a/product/ERP5/Document/AttributeUnicityConstraint.py b/product/ERP5/Document/AttributeUnicityConstraint.py index 36fc4c109a..94717be6f7 100644 --- a/product/ERP5/Document/AttributeUnicityConstraint.py +++ b/product/ERP5/Document/AttributeUnicityConstraint.py @@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint): property_sheets = PropertyExistenceConstraint.property_sheets + \ (PropertySheet.AttributeUnicityConstraint,) - _message_id_tuple = ('message_invalid_attribute_unicity',) - - def _checkConsistency(self, obj, fixit=0): """Check the object's consistency. We will make sure that each non None constraint_definition is @@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint): return error_list + _message_id_tuple = PropertyExistenceConstraint._message_id_tuple + \ + ('message_invalid_attribute_unicity',) -- 2.30.9