[Erp5-report] r35220 nicolas - /erp5/trunk/products/ERP5/Document/Document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 12 15:47:10 CEST 2010


Author: nicolas
Date: Wed May 12 15:47:05 2010
New Revision: 35220

URL: http://svn.erp5.org?rev=35220&view=rev
Log:
Simplify code

Modified:
    erp5/trunk/products/ERP5/Document/Document.py

Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=35220&r1=35219&r2=35220&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Document.py [utf8] Wed May 12 15:47:05 2010
@@ -1113,12 +1113,10 @@
     """
       Converts the subject of the document to a textual representation.
     """
-    subject = self.getSubject()
+    subject = self.getSubject('')
     if not subject:
       # XXX not sure if this fallback is a good idea.
-      subject = self.getTitle()
-    if subject is None:
-      subject = ''
+      subject = self.getTitle('')
     return str(subject)
 
   security.declareProtected(Permissions.View, 'asText')




More information about the Erp5-report mailing list