A patch to get PloneLanguageTool's contentnegotiator work in virtual hosting environment
Project description
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for cs.plt.contentnegotiator-1.3.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a30629682dd83850111632c29e4a81b6f0beacb62d7238eec371304209ded4 |
|
MD5 | 2645fbfb2f918bb849bcc1e25ce8b982 |
|
BLAKE2b-256 | 4299197dade5677e73d054a2552cdb5a43d8064dc424b3a58de19d70f1447980 |