From fab055d611f44c5196d1b5acda3fce712fef62dc Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Wed, 11 Apr 2018 13:42:58 -0400 Subject: updated docs/interfaces to note change in webob 1.7 of `set_cookie(key` to `set_cookie(name` --- docs/narr/webob.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst index 406351562..5fd19e417 100644 --- a/docs/narr/webob.rst +++ b/docs/narr/webob.rst @@ -406,7 +406,7 @@ Here are some highlights: ``response.text``. ``response.content_type_params`` is a dictionary of all the parameters. -``response.set_cookie(key, value, max_age=None, path='/', ...)`` +``response.set_cookie(name, value, max_age=None, path='/', ...)`` 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 ``Expires`` key will also be -- cgit v1.2.3 From 41662fd21a3f4f41684a92c904750543987b87da Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Wed, 11 Apr 2018 17:39:03 -0400 Subject: updated `delete_cookie` docs with `name` instead of `key` --- docs/narr/webob.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst index 5fd19e417..4efe783b0 100644 --- a/docs/narr/webob.rst +++ b/docs/narr/webob.rst @@ -412,7 +412,7 @@ Here are some highlights: (you may also use a timedelta object). The ``Expires`` key will also be set based on the value of ``max_age``. -``response.delete_cookie(key, path='/', domain=None)`` +``response.delete_cookie(name, path='/', domain=None)`` Delete a cookie from the client. This sets ``max_age`` to 0 and the cookie value to ``''``. -- cgit v1.2.3