From faf26ad811f3182f900dcdd049b7ce62ba12e495 Mon Sep 17 00:00:00 2001 From: Philip Bauer Date: Mon, 10 Oct 2016 17:18:57 -0400 Subject: [PATCH] fix rst --- mastering_plone/views_3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastering_plone/views_3.rst b/mastering_plone/views_3.rst index 3041ffc6d..404b0284f 100644 --- a/mastering_plone/views_3.rst +++ b/mastering_plone/views_3.rst @@ -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())