@cherrypy.expose
    def default(self, *args):
        try:
            filename = os.path.join(os.getcwd(), args[0])
        except:
            filename = os.path.join(os.getcwd(), self.defaultPage)
        if os.path.isfile(filename):
            log(os.linesep + '>>> Serve: %s' % filename)
            f = file(filename)
            s = f.read()
            f.close()
            return s
        log(os.linesep + '>>> Does not exist: %s' % filename)
dataset/ETHPy150Open pyjs/pyjs/pyjs/jsonrpc/cherrypy/jsonrpc.py/JSONRPCService.default/original