Commit 78fdb765 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Do not hide errors

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef91601c
......@@ -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)
......@@ -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)
......
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