[Erp5-report] r45062 kazuhiko - /erp5/trunk/products/ERP5/Document/Bug.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 4 17:53:41 CEST 2011


Author: kazuhiko
Date: Mon Apr  4 17:53:40 2011
New Revision: 45062

URL: http://svn.erp5.org?rev=45062&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/Bug.py

Modified: erp5/trunk/products/ERP5/Document/Bug.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Bug.py?rev=45062&r1=45061&r2=45062&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Bug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Bug.py [utf8] Mon Apr  4 17:53:40 2011
@@ -55,16 +55,6 @@ class Bug(Ticket):
                       , PropertySheet.Bug
                       )
 
-    def SearchableText(self):
-      """ Used by the catalog for basic full text indexing """
-      full_text = []
-      for message in self.contentValues(portal_type='Bug Line'):
-        full_text.append(message.getTextContent(""))
-
-      return """ %s %s %s """ % ( self.getTitle(),
-                                  self.getDescription(),
-                                  ' '.join(full_text))
-
     def manage_afterClone(self, item):
       Ticket.manage_afterClone(self, item)
       # delete existing bug lines



More information about the Erp5-report mailing list