Add more doc to the setCookie method

Bug #203918 reported by madarche
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Wishlist
Unassigned

Bug Description

In the following files
zope/publisher/interfaces/http.py
ZPublisher/BaseResponse.py
ZPublisher/HTTPResponse.py

please add the following text to the docstring of the setCookie method:
"""
kw can contain named parameters such as :
- path
- domain
- expires

Example of use:
setCookie('region', 'moscow', expires="Thu, 21 Dec 1967 23:45:00", path='/foo', domain=".bar.com")
"""

Rationale: at first glance one does not think that those parameters are handled and understood by the code.

Regards

Changed in zope2:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.