[Erp5-report] r27107 - /erp5/trunk/products/ERP5Type/DocumentationHelper/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 22 15:32:46 CEST 2009


Author: jp
Date: Fri May 22 15:32:46 2009
New Revision: 27107

URL: http://svn.erp5.org?rev=27107&view=rev
Log:
Do not hide errors

Modified:
    erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py

Modified: erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py?rev=27107&r1=27106&r2=27107&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py [utf8] Fri May 22 15:32:46 2009
@@ -50,7 +50,7 @@
     """
     Returns the title of the documentation helper
     """
-    return getattr(self.getDocumentedObject(), "_params", '')
+    return getattr(self.getDocumentedObject(), "_params")
 
   security.declareProtected(Permissions.AccessContentsInformation, 'getSourceCode')
   def getSourceCode(self):
@@ -58,7 +58,7 @@
     Returns the source code the script python
     """
     from zLOG import LOG, INFO
-    source_code = getattr(self.getDocumentedObject(), "_body", '')
+    source_code = getattr(self.getDocumentedObject(), "_body")
     portal_transforms = getattr(self, 'portal_transforms', None)
     if portal_transforms is not None:
       REQUEST = getattr(self, 'REQUEST', None)




More information about the Erp5-report mailing list