From ca8291fc0bed0b089fae7f24bb986479845c5d04 Mon Sep 17 00:00:00 2001 From: Mayoro Diagne <mayoro@nexedi.com> Date: Tue, 7 Oct 2008 15:40:46 +0000 Subject: [PATCH] display whole source code of PropertySheets git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24074 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../PortalTypePropertySheetDocumentationHelper.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/product/ERP5Type/DocumentationHelper/PortalTypePropertySheetDocumentationHelper.py b/product/ERP5Type/DocumentationHelper/PortalTypePropertySheetDocumentationHelper.py index 99a4b420ec..6f3afa8ef2 100644 --- a/product/ERP5Type/DocumentationHelper/PortalTypePropertySheetDocumentationHelper.py +++ b/product/ERP5Type/DocumentationHelper/PortalTypePropertySheetDocumentationHelper.py @@ -80,11 +80,7 @@ class PortalTypePropertySheetDocumentationHelper(DocumentationHelper): REQUEST = getattr(self, 'REQUEST', None) if REQUEST is not None: if REQUEST.get('portal_skin', 'View' ) != 'View': - doc_string = source_code.split('"""') - if len(doc_string)>1: - return doc_string[1] - else: - return "" + return source_code else: LOG('DCWorkflowScriptDocumentationHelper', INFO, 'Transformation Tool is not installed. No convertion of python script to html') -- 2.30.9