From eaaa8855d88eedb2ad4fef435e7473022504485e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 25 Oct 2010 21:41:46 -0400 Subject: convert more docs from bfg to pyramid --- docs/tutorials/cmf/catalog.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/tutorials/cmf/catalog.rst') diff --git a/docs/tutorials/cmf/catalog.rst b/docs/tutorials/cmf/catalog.rst index f9e147473..11a9483a6 100644 --- a/docs/tutorials/cmf/catalog.rst +++ b/docs/tutorials/cmf/catalog.rst @@ -8,7 +8,7 @@ The main feature of the CMF catalog is that it filters search results from the Zope 2 "catalog" based on the requesting user's ability to view a particular cataloged object. -:mod:`repoze.bfg` itself has no cataloging facility, but an addon +:mod:`pyramid` itself has no cataloging facility, but an addon package named :term:`repoze.catalog` offers similar functionality. Creating an Allowed Index @@ -24,7 +24,7 @@ Creating The ``allowed`` Index Here's some code which creates an ``allowed`` index for use in a ``repoze.catalog`` catalog:: - from repoze.bfg.security import principals_allowed_by_permission + from pyramid.security import principals_allowed_by_permission from repoze.catalog.indexes.keyword import CatalogKeywordIndex from repoze.catalog.catalog import Catalog @@ -53,7 +53,7 @@ Using the ``allowed`` Index Here's how you might use the ``allowed`` index within a query:: - from repoze.bfg.security import effective_principals + from pyramid.security import effective_principals principals = effective_principals(request) catalog.searchResults(allowed={'operator':'or', 'query':principals}) -- cgit v1.2.3