def onShowlog(self): fd = open(CACHELOG, "r") data = json.load(fd) print data Form.onShowlog(self, data)