[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/nzo - search.pt:1.2

Brian Lloyd brian at zope.com
Mon Aug 4 21:33:17 EDT 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/nzo
In directory cvs.zope.org:/tmp/cvs-serv23564

Modified Files:
	search.pt 
Log Message:
Avoid unbounded search


=== Products/ZopeOrg-NV/skins/nzo/search.pt 1.1 => 1.2 ===
       metal:use-macro="here/main_template/macros/master">
 <body>
 <div metal:fill-slot="main"
-     tal:define="global results python:here.doFormSearch( REQUEST=request );
+     tal:define="global results python:request.get('SearchableText') and here.doFormSearch( REQUEST=request ) or [];
                  global pss modules/Products.PythonScripts.standard">
 
 <div class="searchNav">
@@ -184,4 +184,4 @@
 </div>
 
 </body>
-</html>
\ No newline at end of file
+</html>





More information about the zopeorg-checkins mailing list