Introduction
This module patches PloneLanguageTool’s getContentLanguage method to work in a virtual hosting environment such as Plone served by Zope. The original code uses the variable PATH_TRANSLATED from the request but that variable has all the VirtualHostBase and domain keywords used when virtualhosting your Plone site, so this small patch looks at the request and if the application is run in a virtual hosted environment, looks at VIRTUAL_URL_PARTS variable and if not at PATH_TRANSLATED as usual.
This error has been reported to plone-users but has no fix yet.
You’ll need PloneLanguageTool 2.1 to have this patch working Introduction ============
Changelog
1.3-
Change name to cs.plt.contentnegotiator [erral]
1.2-
Fix ConflictError import [erral]
1.1 -
Remove path logging [erral]
Add zcml and initialize method [erral]
1.0 -
Initial release [erral]
Metadata
Release files for cs.plt.contentnegotiator 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.plt.contentnegotiator-1.3.zip | 14.5 kB | Without provenance | Details for cs.plt.contentnegotiator-1.3.zip |
Release files / cs.plt.contentnegotiator-1.3.zip
| Download URL | cs.plt.contentnegotiator-1.3.zip |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8a30629682dd83850111632c29e4a81b6f0beacb62d7238eec371304209ded4
|
|
BLAKE2b-256 checksum How to use checksums |
4299197dade5677e73d054a2552cdb5a43d8064dc424b3a58de19d70f1447980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cs.plt.contentnegotiator 1.3
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.