From 78fdb765a32945551dd2b66c645b137e3ee93b07 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Fri, 22 May 2009 13:37:23 +0000 Subject: [PATCH] Do not hide errors git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27114 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ERP5Type/DocumentationHelper/ERP5FormDocumentationHelper.py | 2 +- .../DocumentationHelper/PageTemplateDocumentationHelper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/DocumentationHelper/ERP5FormDocumentationHelper.py b/product/ERP5Type/DocumentationHelper/ERP5FormDocumentationHelper.py index f1af0525a1..36829e4550 100644 --- a/product/ERP5Type/DocumentationHelper/ERP5FormDocumentationHelper.py +++ b/product/ERP5Type/DocumentationHelper/ERP5FormDocumentationHelper.py @@ -50,6 +50,6 @@ class ERP5FormDocumentationHelper(DocumentationHelper): """ Returns the encoding of the ERP5 Form """ - return getattr(self.getDocumentedObject(), "encoding", '') + return getattr(self.getDocumentedObject(), "encoding") InitializeClass(ERP5FormDocumentationHelper) diff --git a/product/ERP5Type/DocumentationHelper/PageTemplateDocumentationHelper.py b/product/ERP5Type/DocumentationHelper/PageTemplateDocumentationHelper.py index 7a7430a895..2ae71ae45c 100644 --- a/product/ERP5Type/DocumentationHelper/PageTemplateDocumentationHelper.py +++ b/product/ERP5Type/DocumentationHelper/PageTemplateDocumentationHelper.py @@ -51,7 +51,7 @@ class PageTemplateDocumentationHelper(DocumentationHelper): Returns the source code the script python """ from zLOG import LOG, INFO - source_code = getattr(self.getDocumentedObject(), "_text", '') + source_code = getattr(self.getDocumentedObject(), "_text") portal_transforms = getattr(self, 'portal_transforms', None) if portal_transforms is not None: REQUEST = getattr(self, 'REQUEST', None) -- 2.30.9