summaryrefslogtreecommitdiff
path: root/docs/narr/webob.rst
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/webob.rst
parentf2086c23b03717ead05ca3a512091e302534c002 (diff)
downloadpyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.tar.gz
pyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.tar.bz2
pyramid-44f1df7b7cec671fec92ead513804e52e63eb76d.zip
Fix overlong lines.
Diffstat (limited to 'docs/narr/webob.rst')
-rw-r--r--docs/narr/webob.rst14
1 files changed, 8 insertions, 6 deletions
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