summaryrefslogtreecommitdiff
path: root/docs/tutorials/cmf/catalog.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-25 21:41:46 -0400
committerChris McDonough <chrism@plope.com>2010-10-25 21:41:46 -0400
commiteaaa8855d88eedb2ad4fef435e7473022504485e (patch)
tree90a1e05181c607431935d81c5dabf7421d0969f3 /docs/tutorials/cmf/catalog.rst
parent7c697c55324a1624c013e1285734aa687964d690 (diff)
downloadpyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.tar.gz
pyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.tar.bz2
pyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.zip
convert more docs from bfg to pyramid
Diffstat (limited to 'docs/tutorials/cmf/catalog.rst')
-rw-r--r--docs/tutorials/cmf/catalog.rst6
1 files changed, 3 insertions, 3 deletions
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})