Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/w/s/WSME-0.6/wsmeext/cornice.py   WSME(Download)
            else:
                response.status_code = 500
            return restjson.encode_error(None, data)
        obj = data['result']
        if isinstance(obj, wsme.api.Response):
            response.status_code = obj.status_code
            if obj.error:
                return restjson.encode_error(None, obj.error)

src/w/s/wsme-HEAD/wsmeext/cornice.py   wsme(Download)
            else:
                response.status_code = 500
            return restjson.encode_error(None, data)
        obj = data['result']
        if isinstance(obj, wsme.api.Response):
            response.status_code = obj.status_code
            if obj.error:
                return restjson.encode_error(None, obj.error)

src/w/s/WSME-0.6/wsmeext/pecan.py   WSME(Download)
    def render(self, template_path, namespace):
        if 'faultcode' in namespace:
            return wsme.rest.json.encode_error(None, namespace)
        return wsme.rest.json.encode_result(
            namespace['result'],

src/l/i/libra-HEAD/libra/api/wsme_overrides.py   libra(Download)
    def render(self, template_path, namespace):
        if 'message' in namespace:
            return wsme.rest.json.encode_error(None, namespace)
        return wsme.rest.json.encode_result(
            namespace['result'],

src/w/s/wsme-HEAD/wsmeext/pecan.py   wsme(Download)
    def render(template_path, namespace):
        if 'faultcode' in namespace:
            return wsme.rest.json.encode_error(None, namespace)
        return wsme.rest.json.encode_result(
            namespace['result'],

src/t/u/tuskar-HEAD/tuskar/api/renderers.py   tuskar(Download)
 
        if 'faultcode' in namespace:
            return wsme.rest.json.encode_error(None, namespace)
        return wsme.rest.json.encode_result(
            namespace['result'],

src/t/u/tuskar-0.4.1/tuskar/api/renderers.py   tuskar(Download)
            }
        }
        return wsme.rest.json.encode_error(None, body)
 
    def render(self, template_path, namespace):