Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install cs.plt.contentnegotiator

How to install cs.plt.contentnegotiator

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cs.plt.contentnegotiator
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
1.3 Available View build log
Linux (32-bit)
1.3 Available View build log
Linux (64-bit)
1.3 Available View build log
 
License
GPL
Dependencies
Lastest release
version 1.3 on Jul 21st, 2013

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]

Subscribe to package updates

Last updated Jul 21st, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.