Whe ipsilon is used behind apache we need to cast the template to a string.
Otherwise mod_wsgi returns a TypeError complaining about the fact data is
a unicode string instead of a byte string.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
cherrypy.response.headers.update({'Content-Type': 'image/svg+xml'})
urls = self.get_menu_urls()
# pylint: disable=star-args
- return self._template('admin/ipsilon-scheme.svg', **urls)
+ return str(self._template('admin/ipsilon-scheme.svg', **urls))
scheme.public_function = True