[CMF-checkins] CVS: Products/CMFDefault - Document.py:1.30

Tres Seaver tseaver@zope.com
Thu, 18 Oct 2001 17:16:46 -0400


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv25969/CMFDefault

Modified Files:
	Document.py 
Log Message:


  - Document.SearchableText should used methods rather than attributes.


=== Products/CMFDefault/Document.py 1.29 => 1.30 ===
     def SearchableText(self):
         """ Used by the catalog for basic full text indexing """
-        return "%s %s %s" % (self.title, self.description, self.text)
+        return "%s %s %s" % ( self.Title()
+                            , self.Description()
+                            , self.EditableBody()
+                            )
 
     security.declareProtected(CMFCorePermissions.View, 'CookedBody')
     def CookedBody(self, stx_level=None, setlevel=0):