Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Patches for Zope's cookie handling.

Project Description

This package patches the web application server Zope to improve its cookie handling.

Currently, it defines register_cookie_param( name, type ='string', pname =None) to define additional parameters recognized when cookies are generated. name is the parameter given to Zope’s setCookie method, pname is the corresponding parameter name in the generated Set-Cookie response header. If not specified, pname is derived from name by replacing _ by -. type specifies this parameter’s type. Currently defined values are 'string' (normal string, quoted when it contains whitespace, comma or semicolon), 'quoted-string' (a string unconditionally quoted), 'boolean' (boolean parameter, only the name and no value is generated), sequence (generates a quoted comma separated sequence).

Import of dm.zopepatches.cookies.httponly provides for httponly support. It registers both httponly as well as http_only. The former is the spelling consistent with other cookie parameters, the latter is the spelling used by Zope 2.12.

Release History

Release History

This version
History Node

1.0.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dm.zopepatches.cookies-1.0.1.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Oct 24, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting