OK, my comments :
1. no collision (ie no warning message) while a xml file (gg.xml) in localsearches
already exists in searches. The local version takes precedence. Also, I get a script
error on qsfind, and "gg?" gives the usual description, but with a blank first column.
2. the local searches don't show up in qsfind box. I suggest including them there,
with a special identification, to tell if they're local or not.
I attach a fake gg.xml, wich is derived from php.xml, that produces 1.
MLL
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Monty
> Scroggins
> Sent: Wednesday, September 25, 2002 7:18 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [DQSD-Devel] searches from a 'localsearches' directory
>
>
> Hey Glenn,
>
> Just curious about your comment that there will be a
> collision between the
> local and original search if it already exists.. If the
> local versions
> override the existing ones, where is the collision?
> Just curious
>
> Monty
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Glenn Carr
> Sent: Tuesday, September 24, 2002 11:54 PM
> To: [EMAIL PROTECTED]
> Subject: [DQSD-Devel] searches from a 'localsearches' directory
>
>
> Hey guys,
>
> I added the functionality to pull searches from a
> 'localsearches' directory.
> Any testing would be appreciated.
>
> Thanks,
> Glenn
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Tuesday, September 24, 2002 5:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: [DQSD-CVS] dqsd ChangeLog.txt,1.118,1.119
> loader.js,1.49,1.50
> >
> >
> > View the DQSD CVS repository here:
> > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
> >
> > Update of /cvsroot/dqsd/dqsd
> > In directory usw-pr-cvs1:/tmp/cvs-serv19172
> >
> > Modified Files:
> > ChangeLog.txt loader.js
> > Log Message:
> > Added ability to put searches in a localsearches subdirectory.
> >
> > Index: ChangeLog.txt
> > ===================================================================
> > RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
> > retrieving revision 1.118
> > retrieving revision 1.119
> > diff -C2 -d -r1.118 -r1.119
> > *** ChangeLog.txt 24 Sep 2002 21:04:23 -0000 1.118
> > --- ChangeLog.txt 24 Sep 2002 22:22:40 -0000 1.119
> > ***************
> > *** 27,30 ****
> > --- 27,31 ----
> > page that sets up the browser window the way you want it for
> > your results.
> > * Fixed some descriptions in various searches; moved some
> > searches to more appropriate categories
> > + * User-defined searches can be added to a 'localsearches'
> > subdirectory. These will not be overwritten on upgrading.
> >
> > Bug Fixes
> >
> > Index: loader.js
> > ===================================================================
> > RCS file: /cvsroot/dqsd/dqsd/loader.js,v
> > retrieving revision 1.49
> > retrieving revision 1.50
> > diff -C2 -d -r1.49 -r1.50
> > *** loader.js 22 Aug 2002 20:22:32 -0000 1.49
> > --- loader.js 24 Sep 2002 22:22:40 -0000 1.50
> > ***************
> > *** 191,199 ****
> >
> > // Load searches from search directory
> > ! loadSearches();
> >
> > // Load optional add-ons from addons directory
> > loadAddons();
> >
> > // 2. eval all the scripts and doc.write all the forms
> >
> > --- 191,202 ----
> >
> > // Load searches from search directory
> > ! loadSearchesFromDir( "searches" );
> >
> > // Load optional add-ons from addons directory
> > loadAddons();
> >
> > + // Load local searches
> > + loadSearchesFromDir( "localsearches" );
> > +
> > // 2. eval all the scripts and doc.write all the forms
> >
> > ***************
> > *** 318,322 ****
> >
> >
> > ! function loadSearches()
> > {
> >
> > --- 321,325 ----
> >
> >
> > ! function loadSearchesFromDir( directory )
> > {
> >
> > ***************
> > *** 324,328 ****
> > {
> > // Get searches in the 'searches' subdirectory
> > ! var fileSearches = getFiles( "searches\\*.xml" ).split('\n');
> >
> > for ( var i = 0; i < fileSearches.length; i++ )
> > --- 327,331 ----
> > {
> > // Get searches in the 'searches' subdirectory
> > ! var fileSearches = getFiles( directory + "\\*.xml"
> ).split('\n');
> >
> > for ( var i = 0; i < fileSearches.length; i++ )
> > ***************
> > *** 333,337 ****
> > continue;
> >
> > ! loadSearchFile( "searches\\" + fileSearches[i] );
> >
> > }
> > --- 336,340 ----
> > continue;
> >
> > ! loadSearchFile( directory + "\\" + fileSearches[i] );
> >
> > }
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > DQSD-CVS mailing list
> > https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
> > DQSD CVS repository:
> > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> DQSD-Devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dqsd-devel
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> DQSD-Devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dqsd-devel
>
<search function="gg">
<name>PHP Reference</name>
<description>
Lookup on php.net.<br/>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>gg fopen</td></tr>
</table>
</description>
<category>Computers</category>
<link>http://www.php.net/</link>
<script><![CDATA[
function gg(q)
{
if( nullArgs("gg",q) )
return false;
else
openSearchWindow("http://www.php.net/" + q);
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>