Skip to main content

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).

ATTENTION RFC 6265 has drastically simplified the Set-Cookie syntax (over the now obsolete RFC 2965): it is no longer possible to quote ; by including it in a doubly quoted string. This means that ; can no longer be part of a cookie attribute value (unless RFC 2047 encoded).

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.

History

2.0

Made compatible with Python 3 and Zope [4].

Made compatible with RFC 6025

Metadata

Release files for dm.zopepatches.cookies 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dm.zopepatches.cookies 2.0
File Size Uploaded Provenance
dm.zopepatches.cookies-2.0.tar.gz 5.2 kB Without provenance Details

Release files / dm.zopepatches.cookies-2.0.tar.gz

Download URL dm.zopepatches.cookies-2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e0adcc33376fbbf213ffb0dd23a1ef00d9c2cca07e8e8951df256a8ea6014779
BLAKE2b-256 checksum
How to use checksums
9900d849239683e0c69e5aeb5c5d59dad30729d58fe6e0506f01716032c2e3ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for dm.zopepatches.cookies 2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page