Can I get the Find tab to work more like grep?
Is there a way to get the Find tab to work more like regular grep/egrep, that is, to display lines matching the search string instead of just the names of the objects? Alternatively, is there some product or external method I can install which will accomplish the same goal? -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
Hi Skip, --On Sonntag, 8. Dezember 2002 15:42 -0600 Skip Montanaro <skip@pobox.com> wrote:
Is there a way to get the Find tab to work more like regular grep/egrep, that is, to display lines matching the search string instead of just the names of the objects? Alternatively, is there some product or external method I can install which will accomplish the same goal?
You should simply catalog all your Objects into ZCatalog. If you install TextIndexNG, you even have a lot more options then grep would give you. Regards Tino
>> Is there a way to get the Find tab to work more like regular grep/egrep, Tino> You should simply catalog all your Objects into ZCatalog. Thanks. Pretty clunky add/remove interface, but it will do. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
Tino> You should simply catalog all your Objects into ZCatalog. Okay, so I created a ZCatalog. While it seems a bit dated, I was able to fumble around and create a Z Search Interface using the tutorial at http://www.zope.org/Documentation/How-To/ZCatalogTutorial (I found no clues whatsoever in the ZCatalog online Help! that suggested I'd need to create a Z Search Interface.) Unfortunately, after creating the Z Search Interface (named search), it seems all I wind up with is just a faster Find. If I view my search page, it asks me for Id, Path, Title, PrincipiaSearchSource, Meta type and Bobobase modification time. I entered "return" in the PrincipiaSearchSource field and poke the submit button. The page that retured held a table listing 20 object names and various attributes they had. Still no grep-like output, which is what I was looking for. I want to actually see the lines that matched. Is that not possible with a stock Zope 2.5.1? IOW, do I have to coax the server admin to install TextIndexNG? I just want to be able to search my own source code. It seems the easiest thing to do is to ftpmirror the entire site and just use grep. -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
Skip, It sort of sounds like you've reached a point where you might benefit from actually writing code on the filesystem (by creating a Zope "Product") instead of continuing to beat yourself up by writing "through the web" code. I'd hate to see you get so fed up with doing things this way that you stop using Zope. - C On Sun, 2002-12-08 at 20:14, Skip Montanaro wrote:
Tino> You should simply catalog all your Objects into ZCatalog.
Okay, so I created a ZCatalog. While it seems a bit dated, I was able to fumble around and create a Z Search Interface using the tutorial at
http://www.zope.org/Documentation/How-To/ZCatalogTutorial
(I found no clues whatsoever in the ZCatalog online Help! that suggested I'd need to create a Z Search Interface.)
Unfortunately, after creating the Z Search Interface (named search), it seems all I wind up with is just a faster Find. If I view my search page, it asks me for Id, Path, Title, PrincipiaSearchSource, Meta type and Bobobase modification time. I entered "return" in the PrincipiaSearchSource field and poke the submit button. The page that retured held a table listing 20 object names and various attributes they had. Still no grep-like output, which is what I was looking for. I want to actually see the lines that matched. Is that not possible with a stock Zope 2.5.1? IOW, do I have to coax the server admin to install TextIndexNG?
I just want to be able to search my own source code. It seems the easiest thing to do is to ftpmirror the entire site and just use grep.
-- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Chris> It sort of sounds like you've reached a point where you might Chris> benefit from actually writing code on the filesystem (by creating Chris> a Zope "Product") instead of continuing to beat yourself up by Chris> writing "through the web" code. I'd hate to see you get so fed Chris> up with doing things this way that you stop using Zope.
From my experience with Mason, having the ability to just edit my code in the file system is a huge benefit. (For those not familiar with Mason, it provides both through-the-web and local filesystem access to the code.) It's unlikely my client will go for that in this case, but I would sure like to be able to do that for future Zope stuff. For the time being I'll just use ftpmirror.py to keep a local copy I can search through.
Skip
participants (3)
-
Chris McDonough -
Skip Montanaro -
Tino Wildenhain