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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 7 18:55:41 CEST 2008


Author: mayoro
Date: Tue Oct  7 18:55:38 2008
New Revision: 24079

URL: http://svn.erp5.org?rev=24079&view=rev
Log:
do not display doc_string if it's not placed at the begining of the script

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

Modified: erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowScriptDocumentationHelper.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowScriptDocumentationHelper.py?rev=24079&r1=24078&r2=24079&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowScriptDocumentationHelper.py (original)
+++ erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowScriptDocumentationHelper.py Tue Oct  7 18:55:38 2008
@@ -94,7 +94,7 @@
       if REQUEST is not None:
         if REQUEST.get('portal_skin', 'View' ) != 'View':
           doc_string = source_code.split('"""')
-          if len(doc_string)>1:
+          if len(doc_string)>1 and not doc_string[0]:
             return doc_string[1]
           else:
             return ""

Modified: erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py?rev=24079&r1=24078&r2=24079&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py (original)
+++ erp5/trunk/products/ERP5Type/DocumentationHelper/ScriptPythonDocumentationHelper.py Tue Oct  7 18:55:38 2008
@@ -76,7 +76,7 @@
       if REQUEST is not None:
         if REQUEST.get('portal_skin', 'View' ) != 'View':
           doc_string = source_code.split('"""')
-          if len(doc_string)>1:
+          if len(doc_string)>1 and not doc_string[0]:
             return doc_string[1]
           else:
             return ""




More information about the Erp5-report mailing list