Fix the encode_result call
This commit is contained in:
parent
33d852b2e4
commit
7def85c238
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user