[Zope-Checkins] CVS: Zope/lib/python/OFS - FindSupport.py:1.31.68.1

Anthony Baxter anthony at interlink.com.au
Thu Aug 28 05:26:53 EDT 2003


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv12236

Modified Files:
      Tag: Zope-2_7-branch
	FindSupport.py 
Log Message:
If a find string contains a <, it's a "TaintedString", rather than
a string. This then breaks when you do a Find. Force it to be a string.


=== Zope/lib/python/OFS/FindSupport.py 1.31 => 1.31.68.1 ===
--- Zope/lib/python/OFS/FindSupport.py:1.31	Wed Aug 14 17:42:56 2002
+++ Zope/lib/python/OFS/FindSupport.py	Thu Aug 28 04:26:53 2003
@@ -114,7 +114,7 @@
                 and
                 (not obj_searchterm or
                  (hasattr(ob, 'PrincipiaSearchSource') and
-                  ob.PrincipiaSearchSource().find(obj_searchterm) >= 0
+                  ob.PrincipiaSearchSource().find(str(obj_searchterm)) >= 0
                   ))
                 and
                 (not obj_expr or expr_match(ob, obj_expr))




More information about the Zope-Checkins mailing list