www.cygwin.com will give you many common unix type tools for windows, and includes a grep that is recursive: grep -r "myfunction" *.py Scott -----Original Message----- From: Terry Hancock [mailto:hancock@earthlink.net] Sent: Friday, November 30, 2001 6:27 AM To: zope@zope.org Cc: Elena Schulz Subject: Re: [Zope] How to find a function in the zopeSource? Basically, your best bet is to use a combination of "find" and "grep", such as: find . -name "*.py" -exec grep "myfunction" {} \; This amazingly confusing syntax means "starting from the current directory ('.'), find files which match '*.py' (i.e. Python source files), and execute grep on them each in turn". The contained grep expression says to search the file for the string "myfunction". If you are lucky enough to know which directory you need to search, you can economize a bit and just use grep: grep "myfunction" *.py (which is easier to remember!). This, of course, is not specific to Zope, but applies any time you need to find string references in a large tree of files. Unfortunately, the fact that you don't know this probably means you're not using Linux/Unix, so this may not be so helpful. I have heard that there is a software package for Windows which gives you these common utilities, but I don't know where to get it. Perhaps someone else could help you find that. (Maybe just knowing it exists is helpful?). Hope this helps, Terry Hancock
Message: 45 From: "Elena Schulz" <elena.schulz@gmx.net> To: <zope@zope.org> Date: Fri, 30 Nov 2001 10:27:34 +0100 Subject: [Zope] How to find a function in the zopeSource?
Dear List,
can anybody tell me how to find a certain python or dtml-function in the = zope source-code? Let=B4s say I am looking for manage_workspace or = manage_main? Is there a way to find it in general?
Thanks a reply,
Elena
-- ------------------------------------------------------ Terry Hancock hancock@anansispaceworks.com Anansi Spaceworks http://www.anansispaceworks.com P.O. Box 60583 Pasadena, CA 91116-6583 ------------------------------------------------------ _______________________________________________ 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 ) The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files.