[Erp5-report] r45069 kazuhiko - /erp5/trunk/products/ERP5/Document/AccountingTransaction.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 4 21:31:38 CEST 2011


Author: kazuhiko
Date: Mon Apr  4 21:31:37 2011
New Revision: 45069

URL: http://svn.erp5.org?rev=45069&view=rev
Log:
since getSearchableText is already well configurable in ERP5Type.Base, we should no longer have such a definition here (and defining SearchableText() instead of getSearchableText() is bad anyway).

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

Modified: erp5/trunk/products/ERP5/Document/AccountingTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/AccountingTransaction.py?rev=45069&r1=45068&r2=45069&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/AccountingTransaction.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/AccountingTransaction.py [utf8] Mon Apr  4 21:31:37 2011
@@ -82,25 +82,6 @@ class AccountingTransaction(Delivery):
       if section is not None:
         return section.getPortalType() != 'Person'
       return False
-    
-    security.declareProtected(Permissions.AccessContentsInformation,
-                              'SearchableText')
-    def SearchableText(self):
-      """Text for full text search"""
-      text_list = []
-      for prop in ( self.getTitle(),
-                    self.getDescription(),
-                    self.getComment(),
-                    self.getReference(),
-                    self.getSourceReference(),
-                    self.getDestinationReference(),
-                    self.getSourceSectionTitle(),
-                    self.getDestinationSectionTitle(),
-                    self.getStartDate(),
-                    self.getStopDate(), ):
-        if prop:
-          text_list.append(str(prop))
-      return ' '.join(text_list)
 
 # Compatibility
 # It may be necessary to create an alias after removing the Transaction class



More information about the Erp5-report mailing list