summaryrefslogtreecommitdiff
path: root/docs/narr/views.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-28 04:12:10 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-28 04:12:10 +0000
commit125e9746a5da925243dabf67b2609b556bb9215a (patch)
tree2ef52dadcf40f840586293f8cf66e9a11d0f04b0 /docs/narr/views.rst
parent48ed96bf621128adf59b225f1c8e33af44bc0594 (diff)
downloadpyramid-125e9746a5da925243dabf67b2609b556bb9215a.tar.gz
pyramid-125e9746a5da925243dabf67b2609b556bb9215a.tar.bz2
pyramid-125e9746a5da925243dabf67b2609b556bb9215a.zip
Adjust for 7.5x9.25in output.
Diffstat (limited to 'docs/narr/views.rst')
-rw-r--r--docs/narr/views.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst
index b25756fd9..8ad343f39 100644
--- a/docs/narr/views.rst
+++ b/docs/narr/views.rst
@@ -400,8 +400,8 @@ the following:
<scan package="."/>
-- If you are using :term:`imperative configuration`, use the
- :meth:`repoze.bfg.configuration.Configurator.scan` method:
+- If you are using :term:`imperative configuration`, use the ``scan``
+ method of a :class:`repoze.bfg.configuration.Configurator`:
.. code-block:: python
@@ -1288,8 +1288,7 @@ CSS files) within a :mod:`repoze.bfg` application. These mechanisms
makes static files available at a name relative to the application
root URL, e.g. ``/static``.
-Use of the imperative configuration method
-:meth:`repoze.bfg.configuration.configurator.add_static_view` is
+Use of the ``add_static_view`` imperative configuration method is
completely equivalent to using ZCML for the same purpose.
Here's an example of a ``static`` ZCML directive that will serve files
@@ -1341,8 +1340,8 @@ these will be resolved by the static view as you would expect.
See :ref:`static_directive` for detailed information.
-.. note:: The ``<static>`` ZCML directive is new in :mod:`repoze.bfg`
- 1.1.
+.. note:: The :ref:`static_directive` ZCML directive is new in
+ :mod:`repoze.bfg` 1.1.
.. index::
pair: generating; static resource
@@ -1352,9 +1351,10 @@ See :ref:`static_directive` for detailed information.
Generating Static Resource URLs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-When a ``<static>`` ZCML directive or a call to
-:meth:`repoze.bfg.configuration.configurator.add_static_view` is used
-to register a static resource directory, a special helper API named
+When a ref::`static_directive` ZCML directive or a call to the
+``add_static_view`` method of a
+:class:`repoze.bfg.configuration.Configurator` is used to register a
+static resource directory, a special helper API named
:func:`repoze.bfg.static_url` can be used to generate the appropriate
URL for a package resource that lives in one of the directories named
by the static registration ``path`` attribute.