[Erp5-report] r34833 jerome - /erp5/trunk/products/ERP5/Constraint/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 28 16:53:42 CEST 2010
Author: jerome
Date: Wed Apr 28 16:53:40 2010
New Revision: 34833
URL: http://svn.erp5.org?rev=34833&view=rev
Log:
constraints messages do not end with a .
Modified:
erp5/trunk/products/ERP5/Constraint/AccountTypeConstraint.py
erp5/trunk/products/ERP5/Constraint/AccountingTransactionBalance.py
erp5/trunk/products/ERP5/Constraint/DocumentReferenceConstraint.py
Modified: erp5/trunk/products/ERP5/Constraint/AccountTypeConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Constraint/AccountTypeConstraint.py?rev=34833&r1=34832&r2=34833&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Constraint/AccountTypeConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Constraint/AccountTypeConstraint.py [utf8] Wed Apr 28 16:53:40 2010
@@ -56,7 +56,7 @@
message_inconsistent_account_type = translateString(
'Account is member'
' of ${category}, this should have account_type'
- ' in ${account_type_list}.')
+ ' in ${account_type_list}')
def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker
@@ -65,7 +65,7 @@
if getattr(obj, 'getAccountType', _MARKER) is _MARKER:
errors.append(self._generateError(
obj,
- translateString("Account does not have account_type category.")))
+ translateString("Account does not have account_type category")))
else:
account_type_map = getattr(self, '_account_type_map', ())
if not account_type_map:
Modified: erp5/trunk/products/ERP5/Constraint/AccountingTransactionBalance.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Constraint/AccountingTransactionBalance.py?rev=34833&r1=34832&r2=34833&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Constraint/AccountingTransactionBalance.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Constraint/AccountingTransactionBalance.py [utf8] Wed Apr 28 16:53:40 2010
@@ -27,7 +27,6 @@
##############################################################################
from Products.ERP5Type.Constraint import Constraint
-from Products.ERP5Type.Message import Message
translateString = lambda msg: msg # just to extract messages
class AccountingTransactionBalance(Constraint):
@@ -38,9 +37,9 @@
'message_transaction_not_balanced_for_destination' ]
message_transaction_not_balanced_for_source = translateString(
- 'Transaction is not balanced.')
+ 'Transaction is not balanced')
message_transaction_not_balanced_for_destination = translateString(
- 'Transaction is not balanced.')
+ 'Transaction is not balanced')
def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker
Modified: erp5/trunk/products/ERP5/Constraint/DocumentReferenceConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Constraint/DocumentReferenceConstraint.py?rev=34833&r1=34832&r2=34833&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Constraint/DocumentReferenceConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Constraint/DocumentReferenceConstraint.py [utf8] Wed Apr 28 16:53:40 2010
@@ -46,13 +46,13 @@
'message_multiple_documents_exists' ]
message_property_not_defined = translateString(
- 'Property ${property_id} was not defined.')
+ 'Property ${property_id} was not defined')
message_another_document_exists = translateString(
'Another document ${document_reference} - '
- '${document_language} - ${document_version} already exists.')
+ '${document_language} - ${document_version} already exists')
message_multiple_documents_exists = translateString(
'Multiple (${document_count}) documents ${document_reference} - '
- '${document_language} - ${document_version} already exists.')
+ '${document_language} - ${document_version} already exists')
def checkConsistency(self, object, fixit=0):
"""
More information about the Erp5-report
mailing list