Comment 1 for bug 819750

Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :

The bug is not in Ladon but the way you use strings. When you ladonize a method to use unicode you must be sure to return that type:

# -*- coding: utf-8 -*-
from ladon.ladonizer import ladonize

class TaleoGateway(object):
        @ladonize(rtype=unicode)
        def ViewI(self):
                return unicode("Hello")

Best Regards
Jakob Simon-Gaarde