Zope Folders support a basic search capability that allows managers to search a Folder and all sub-folders for objects which match certain criteria. This can be highly useful for content managers who maintain a large Zope site. It can be used, for example, to find all DTML Document objects containing a certain text string (or DTML tag), or to list those objects which have been modified since a certain date.
The management interface of all Zope Folders includes a Find tab. Clicking this tab presents the Find screen, shown in Figure 38 . The Find screen consists of a top frame containing a form which allows search criteria to be entered. The lower frame displays search result listings. You can search the object space based on object ids, object types, last modified times and the presence of a particular text string in the object. These search criteria may be used individually or in combination.
![]() |
The object types field is a drop-down list of the installed object types available. One or more object types may be selected to restrict the search to only those object types, or you can select "All types" (the default) to search all types of objects.
The with ids field allows you to specify one or more (space-separated) object ids. If specified, only those objects whose ids match will be included in the results.
The containing field allows you to enter a text string which must be found in any matching object. This field can be used to find DTML tags in DTML Methods. For example, the string "<!--#var spam-->" will find all DTML Methods for which "<!--#var spam-->" appears in the DTML Method's source.
The modified field allows you narrow the results to only those objects modified before or after a given date and time. The modified field consists of a drop-down box containing "before" and "after", and a text field into which you can type a date/time value. For example, to find all objects modified after 11 am on July 29, 1998, select "after" from the drop-down box and type 7/29/1998 11:00 am in the text area. Most non-ambiguous date strings can be used in the date field.
The search subfolders field is a set of radio buttons which specify whether all subfolders of the current Folder should be searched, or only the contents of the current Folder.
All search criteria are cumulative. An object must meet all specified criteria to appear in the search results. For example, selecting the object type "DTML Method" and specifying an id of "MyDocument" will find only DTML Method objects having an id of "MyDocument". Other Zope objects of types other than "DTML Method" will be excluded from the search, even if they have the specified id.
After entering the search criteria, click the "Find" button to perform the search. Results of the search will be listed in the lower frame of the Find screen. The results are formatted and behave much like a standard Folder contents listing. Clicking on a result item will bring up the management interface for that item
Previous Chapter | Next Chapter | Up | Next Section | Contents