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)
                return restjson.encode_error(None, obj.error)
            obj = obj.obj
        return restjson.encode_result(obj, data['datatype'])
 
 

src/w/s/wsme-HEAD/wsmeext/cornice.py   wsme(Download)
                return restjson.encode_error(None, obj.error)
            obj = obj.obj
        return restjson.encode_result(obj, data['datatype'])
 
 

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)
            return wsme.rest.json.encode_error(None, namespace)
        return wsme.rest.json.encode_result(
            namespace['result'],
            namespace['datatype']
        )

src/t/u/tuskar-0.4.1/tuskar/api/renderers.py   tuskar(Download)
 
        return wsme.rest.json.encode_result(
            result,
            namespace['datatype']
        )

src/w/s/WSME-0.6/wsmeext/tg1.py   WSME(Download)
    def render(self, info, format="json", fragment=False, template=None):
        "Renders the template to a string using the provided info."
        return wsme.rest.json.encode_result(
            info['result'], info['datatype']
        )

src/w/s/wsme-HEAD/wsmeext/tg1.py   wsme(Download)
    def render(self, info, format="json", fragment=False, template=None):
        "Renders the template to a string using the provided info."
        return wsme.rest.json.encode_result(
            info['result'], info['datatype']
        )