diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-19 04:18:12 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-19 04:18:12 -0500 |
| commit | 780999e8504d1087d4e48a822174ebb69309bcfe (patch) | |
| tree | 4eb9eb08b3db003b632ee69d47dfb2b3b45c0f17 /docs/narr/declarative.rst | |
| parent | d9fccbbd2e8c1122aba34c854fa08ca2c659642d (diff) | |
| download | pyramid-780999e8504d1087d4e48a822174ebb69309bcfe.tar.gz pyramid-780999e8504d1087d4e48a822174ebb69309bcfe.tar.bz2 pyramid-780999e8504d1087d4e48a822174ebb69309bcfe.zip | |
context finding -> resource location
Diffstat (limited to 'docs/narr/declarative.rst')
| -rw-r--r-- | docs/narr/declarative.rst | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/narr/declarative.rst b/docs/narr/declarative.rst index 28dec4ff1..deccb6c48 100644 --- a/docs/narr/declarative.rst +++ b/docs/narr/declarative.rst @@ -563,7 +563,7 @@ example of a view declaration in ZCML is as follows: /> The above maps the ``.views.hello_world`` view callable function to -the following set of :term:`context finding` results: +the following set of :term:`resource location` results: - A :term:`context` object which is an instance (or subclass) of the Python class represented by ``.resources.Hello`` @@ -593,12 +593,11 @@ You can also declare a *default view callable* for a :term:`resource` type: view=".views.hello_world" /> -A *default view callable* simply has no ``name`` attribute. For the -above registration, when a :term:`context` is found that is of the -type ``.resources.Hello`` and there is no :term:`view name` associated -with the result of :term:`context finding`, the *default view -callable* will be used. In this case, it's the view at -``.views.hello_world``. +A *default view callable* simply has no ``name`` attribute. For the above +registration, when a :term:`context` is found that is of the type +``.resources.Hello`` and there is no :term:`view name` associated with the +result of :term:`resource location`, the *default view callable* will be +used. In this case, it's the view at ``.views.hello_world``. A default view callable can alternately be defined by using the empty string as its ``name`` attribute: |
