Fix the encode_result call

This commit is contained in:
Christophe de Vienne 2012-11-29 21:58:42 +01:00
parent 33d852b2e4
commit 7def85c238

View File

@ -15,8 +15,8 @@ class JSonRenderer(object):
def render(self, template_path, namespace):
return wsme.rest.json.encode_result(
namespace['datatype'],
namespace['result']
namespace['result'],
namespace['datatype']
)
@ -26,8 +26,8 @@ class XMLRenderer(object):
def render(self, template_path, namespace):
return wsme.rest.xml.encode_result(
namespace['datatype'],
namespace['result']
namespace['result'],
namespace['datatype']
)
pecan.templating._builtin_renderers['wsmejson'] = JSonRenderer