[Erp5-report] r21120 - /erp5/trunk/products/ERP5Type/DocumentationHelper/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 26 12:07:53 CEST 2008
Author: seb
Date: Mon May 26 12:07:50 2008
New Revision: 21120
URL: http://svn.erp5.org?rev=21120&view=rev
Log:
do not assume that there is always a description
Modified:
erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowDocumentationHelper.py
Modified: erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowDocumentationHelper.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowDocumentationHelper.py?rev=21120&r1=21119&r2=21120&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowDocumentationHelper.py (original)
+++ erp5/trunk/products/ERP5Type/DocumentationHelper/DCWorkflowDocumentationHelper.py Mon May 26 12:07:50 2008
@@ -254,7 +254,7 @@
"""
variable_list = []
for variable in self.getInstance().variables.objectValues():
- variable_list.append((variable.getId(), variable.title, variable.__dict__["description"]))
+ variable_list.append((variable.getId(), variable.title, variable.__dict__.get("description",'')))
return variable_list
security.declareProtected( Permissions.AccessContentsInformation, 'getVariableURIList' )
More information about the Erp5-report
mailing list