Previous Chapter | Up | Next Section | Contents

Advanced Find


At the bottom of the Find screen, there is a link to advanced options. Clicking the "Advanced..." link brings up the advanced version of the Find form.

The advanced Find form contains all of the fields displayed by the standard Find form, but also adds the ability to search the object space based on security attributes and arbitrary expressions. Like the standard Find form, all search criteria are cumulative. An object must meet all specified criteria to appear in the search results.

The expr field allows you to type in an expression which is applied to each object in the search. If the expression evaluates to a true value for an object, it will be added to the search results. The format and namespace of expressions is the same as for expressions used in DTML. For instance the expr: "title=='Homepage'" will be true for only those objects whose title attribute is 'Homepage'.

Searching based on security attributes allows you to narrow the search to only those objects where a given role or roles have a specific permission. For instance, you can select the role "Anonymous" and the permission "View" to see all those objects where users with the role "Anonymous" have the "View" permission. If you select more than one role, all of the selected roles must have the specified permission on an object for that object to be included in the search results.

Using Advanced Find to search on security attributes can be useful in verifying your security settings on a site developed with Zope. For example, you can select the role "Anonymous" and the permission "Change DTML Documents" to do a security check to ensure that you have not inadvertently given the public the ability to edit any DTML Documents in your site.

To reaccess the simple Find screen, click on the link, "Simple...".

Previous Chapter | Up | Next Section | Contents