To use Grok on the Zope2 platform (used by Plone), you need to install the correct version of the five.grok
package.
Grok is developed against the Zope Toolkit, and the publisher package in the ZTK has a slightly different API than what the Zope2 publisher offers. five.grok
bridges that difference. But you need to have the right version to make the correct match.
For Plone 4.1 (Zope 2.13), make sure you use five.grok
version 1.3.1 or newer:
- Fix the redirect method to properly work. Unlike in Zope 3, it doesn't support trusted.
If you were to upgrade to Plone 4.2, the right version pin is included in the included versions.cfg file.