Skip to content

Commit

Permalink
fix rst
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Oct 11, 2016
1 parent 314b367 commit faf26ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mastering_plone/views_3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ We pass a object as `context` to query only for content in the current path. Oth

We use the method :py:meth:`find` in :py:mod:`plone.api` to query the catalog. It is one of many convenience-methods provided as a wrapper around otherwise more complex api's. If you query the catalog direcly you'd have to first get the catalog, and pass it the path for which you want to find items:

.. code-block:: python:
.. code-block:: python
portal_catalog = api.portal.get_tool('portal_catalog')
current_path = '/'.join(self.context.getPhysicalPath())
Expand Down

0 comments on commit faf26ad

Please sign in to comment.