Commit ca8291fc authored by Mayoro Diagne's avatar Mayoro Diagne

display whole source code of PropertySheets

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