From 780999e8504d1087d4e48a822174ebb69309bcfe Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 19 Dec 2010 04:18:12 -0500 Subject: context finding -> resource location --- docs/narr/declarative.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'docs/narr/declarative.rst') 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: -- cgit v1.2.3