[Grok-dev] zope.app.wsgi adapters not registered by default

Martijn Faassen faassen at startifact.com
Thu May 12 06:56:16 EDT 2011

On 05/11/2011 01:48 PM, Jeroen Michiel wrote:
> I'm upgrading a grok1.1 project to 1.4, and I came across this problem:
> I have some views that allow XML export of some objects. The view's render
> method returns an on-the-fly generated tempfile.TemporaryFile object. That
> used to work before, but not after upgrading to 1.4: I got a rather obscure
> 'TypeError: The result should be None, a string, or adaptable to IResult.'
> error.
> After some searching I found that zope.app.wsgi does define adapters for
> this, however, they don't seem to be registered by default. Adding
> 'zope.app.wsgi' to install_requires in setup.py solved the issue.
> Was this deliberate, or an oversight?
> If it is deliberate, there should be some mention of it in the docs.

Doesn't sound deliberate. Could you add this to launchpad?



More information about the Grok-dev mailing list