Commit c2b5fae4 authored by Jérome Perrin's avatar Jérome Perrin

constraints messages do not end with a .


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34833 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95d72fd2
...@@ -56,7 +56,7 @@ class AccountTypeConstraint(Constraint): ...@@ -56,7 +56,7 @@ class AccountTypeConstraint(Constraint):
message_inconsistent_account_type = translateString( message_inconsistent_account_type = translateString(
'Account is member' 'Account is member'
' of ${category}, this should have account_type' ' of ${category}, this should have account_type'
' in ${account_type_list}.') ' in ${account_type_list}')
def checkConsistency(self, obj, fixit=0): def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker """Implement here the consistency checker
...@@ -65,7 +65,7 @@ class AccountTypeConstraint(Constraint): ...@@ -65,7 +65,7 @@ class AccountTypeConstraint(Constraint):
if getattr(obj, 'getAccountType', _MARKER) is _MARKER: if getattr(obj, 'getAccountType', _MARKER) is _MARKER:
errors.append(self._generateError( errors.append(self._generateError(
obj, obj,
translateString("Account does not have account_type category."))) translateString("Account does not have account_type category")))
else: else:
account_type_map = getattr(self, '_account_type_map', ()) account_type_map = getattr(self, '_account_type_map', ())
if not account_type_map: if not account_type_map:
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
############################################################################## ##############################################################################
from Products.ERP5Type.Constraint import Constraint from Products.ERP5Type.Constraint import Constraint
from Products.ERP5Type.Message import Message
translateString = lambda msg: msg # just to extract messages translateString = lambda msg: msg # just to extract messages
class AccountingTransactionBalance(Constraint): class AccountingTransactionBalance(Constraint):
...@@ -38,9 +37,9 @@ class AccountingTransactionBalance(Constraint): ...@@ -38,9 +37,9 @@ class AccountingTransactionBalance(Constraint):
'message_transaction_not_balanced_for_destination' ] 'message_transaction_not_balanced_for_destination' ]
message_transaction_not_balanced_for_source = translateString( message_transaction_not_balanced_for_source = translateString(
'Transaction is not balanced.') 'Transaction is not balanced')
message_transaction_not_balanced_for_destination = translateString( message_transaction_not_balanced_for_destination = translateString(
'Transaction is not balanced.') 'Transaction is not balanced')
def checkConsistency(self, obj, fixit=0): def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker """Implement here the consistency checker
......
...@@ -46,13 +46,13 @@ class DocumentReferenceConstraint(Constraint): ...@@ -46,13 +46,13 @@ class DocumentReferenceConstraint(Constraint):
'message_multiple_documents_exists' ] 'message_multiple_documents_exists' ]
message_property_not_defined = translateString( message_property_not_defined = translateString(
'Property ${property_id} was not defined.') 'Property ${property_id} was not defined')
message_another_document_exists = translateString( message_another_document_exists = translateString(
'Another document ${document_reference} - ' 'Another document ${document_reference} - '
'${document_language} - ${document_version} already exists.') '${document_language} - ${document_version} already exists')
message_multiple_documents_exists = translateString( message_multiple_documents_exists = translateString(
'Multiple (${document_count}) documents ${document_reference} - ' 'Multiple (${document_count}) documents ${document_reference} - '
'${document_language} - ${document_version} already exists.') '${document_language} - ${document_version} already exists')
def checkConsistency(self, object, fixit=0): def checkConsistency(self, object, fixit=0):
""" """
......
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