From af80fb5cffd570b9a9aeca545891e4cd2777dce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 27 Jul 2010 14:44:19 +0000 Subject: [PATCH] define getExplanationValue to silent errors during indexation git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37294 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BudgetCell.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5/Document/BudgetCell.py b/product/ERP5/Document/BudgetCell.py index 0c68ae4d15..53d75bbe10 100644 --- a/product/ERP5/Document/BudgetCell.py +++ b/product/ERP5/Document/BudgetCell.py @@ -132,3 +132,8 @@ class BudgetCell(Predicate, MetaNode, Movement): "Did not find engaged budget script for portal type: %r" % \ self.getPortalType() + security.declareProtected(Permissions.AccessContentsInformation, + 'getExplanationValue') + def getExplanationValue(self, default=None): + """Explanation has no meaning for a budget cell""" + return default -- 2.30.9