Ticket #1443 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

Exception when the default renderer of a WSGIApp is asynchronous

Reported by: apoirier Owned by: apoirier
Priority: major Component: renderers
Version: 0.3.0 Keywords:
Cc:

Description

When the default renderer for a WSGIApp is an asynchronous renderer:

from nagare import wsgi
from nagare.namespaces import xhtml

class WSGIApp(wsgi.WSGIApp):
    renderer_factory = xhtml.AsyncRenderer

a TypeError exception is raised:

File '/Volumes/data/projects/nagare/dev/lib/python2.6/site-packages/WebError-0.10.1-py2.6.egg/weberror/evalexception.py', line 431 in respond
  app_iter = self.application(environ, detect_start_response)
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/wsgi.py', line 483 in __call__
  response = self.on_exception(request, response)
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/wsgi.py', line 465 in __call__
  output = top.wrap(renderer.content_type, renderer, output)
File '/Volumes/data/projects/nagare/dev/src/nagare/core/nagare/top.py', line 55 in wrap
  body.insert(0, head1)
File 'lxml.etree.pyx', line 715 in lxml.etree._Element.insert (src/lxml/lxml.etree.c:32123)
TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got str)

Change History

comment:1 Changed 7 years ago by apoirier

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.