def get(self, request, function):
        try:
            handler = self._mapping[function]
        except __HOLE__:
            request.log_error("No JSON handler for %r.\n" % function)
            return JSON404()
        kwargs = JSONQuery(request)
        try:
            return JSONResponse(handler(request, **kwargs))
        except:
            ex, val, tb = sys.exc_info()
            tblist = traceback.extract_tb(tb)
            del tb
            request.log_error("JSON handler error: %s: %s\n" % (ex, val))
            return JSONServerError(ex, val, tblist)
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/framework.py/JSONRequestHandler.get