summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-28 22:41:03 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-28 22:41:03 +0000
commit44f1df7b7cec671fec92ead513804e52e63eb76d (patch)
tree98d95fc68b2c826034178d8c19c119bf0070e110 /docs/narr
parentf2086c23b03717ead05ca3a512091e302534c002 (diff)
downloadpyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.tar.gz
pyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.tar.bz2
pyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.zip
Fix overlong lines.
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/events.rst4
-rw-r--r--docs/narr/project.rst10
-rw-r--r--docs/narr/webob.rst14
3 files changed, 16 insertions, 12 deletions
diff --git a/docs/narr/events.rst b/docs/narr/events.rst
index 2cbbe572d..1d012b99d 100644
--- a/docs/narr/events.rst
+++ b/docs/narr/events.rst
@@ -114,8 +114,8 @@ file:
See also :ref:`subscriber_directive`.
-Subscribers may also be configured imperatively via the
-:meth:`repoze.bfg.configuration.Configurator.add_subscriber` method:
+The :meth:`repoze.bfg.configuration.Configurator.add_subscriber`
+method can be used to perform the same job:
.. ignore-next-block
.. code-block:: python
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 681fba7a6..646d59229 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -218,8 +218,8 @@ the name ``main`` as a section name:
.. code-block:: text
- [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell MyProject.ini main
-
+ [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell \
+ MyProject.ini main
Python 2.4.5 (#1, Aug 29 2008, 12:27:37)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help" for more information. "root" is the BFG app root object.
@@ -239,7 +239,8 @@ standard Python interpreter shell unconditionally.
.. code-block:: text
- [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell MyProject.ini main
+ [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell \
+ MyProject.ini main
Press "Ctrl-D" to exit the interactive shell.
@@ -268,7 +269,8 @@ The command you use to invoke the interactive shell should be:
.. code-block:: text
- [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell MyProject.ini myapp
+ [chrism@vitaminf bfgshellenv]$ ../bin/paster --plugin=repoze.bfg bfgshell \
+ MyProject.ini myapp
If you use ``main`` as the section name argument instead of ``myapp``
against the above ``.ini`` file, an error will likely occur. Use the
diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst
index 5c9549d9a..be7abd3b9 100644
--- a/docs/narr/webob.rst
+++ b/docs/narr/webob.rst
@@ -103,19 +103,19 @@ URLs
In addition to these attributes, there are several ways to get the URL
of the request. I'll show various values for an example URL
-``http://localhost/app-root/doc?article_id=10``, where the application
-is mounted at ``http://localhost/app-root``.
+``http://localhost/app/?id=10``, where the application is mounted at
+``http://localhost/app``.
``req.url``:
The full request URL, with query string, e.g.,
- ``'http://localhost/app-root/doc?article_id=10'``
+ ``http://localhost/app/?id=10``
``req.application_url``:
The URL of the application (just the SCRIPT_NAME portion of the
- path, not PATH_INFO). E.g., ``'http://localhost/app-root'``
+ path, not PATH_INFO). E.g., ``http://localhost/app``
``req.host_url``:
- The URL with the host, e.g., ``'http://localhost'``
+ The URL with the host, e.g., ``http://localhost``
``req.relative_url(url, to_application=False)``:
Gives a URL, relative to the current URL. If ``to_application``
@@ -207,7 +207,9 @@ Here's the highlights:
This optional attribute can point to the request object associated
with this response object.
-``response.set_cookie(key, value, max_age=None, path='/', domain=None, secure=None, httponly=False, version=None, comment=None)``:
+``response.set_cookie(key, value, max_age=None, path='/',
+ domain=None, secure=None, httponly=False,
+ version=None, comment=None)``:
Set a cookie. The keyword arguments control the various cookie
parameters. The ``max_age`` argument is the length for the cookie
to live in seconds (you may also use a timedelta object). The