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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jul 31 11:51:10 CEST 2008


Author: rafael
Date: Thu Jul 31 11:51:10 2008
New Revision: 22779

URL: http://svn.erp5.org?rev=22779&view=rev
Log:
Added back removed method.


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=22779&r1=22778&r2=22779&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Bug.py (original)
+++ erp5/trunk/products/ERP5/Document/Bug.py Thu Jul 31 11:51:10 2008
@@ -61,3 +61,13 @@
                       , PropertySheet.Movement
                       , 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))
+




More information about the Erp5-report mailing list