@staticmethod
    def render(template_path, namespace):
        if 'faultcode' in namespace:
            return wsme.rest.xml.encode_error(None, namespace)
        return wsme.rest.xml.encode_result(
            namespace['result'],
            namespace['datatype']
        )
dataset/ETHPy150Open openstack/wsme/wsmeext/pecan.py/XMLRenderer.render/original