def get_jasper_reqid_data(self, reqId): print "reqId %s" % reqId data = utils.get_jasper_data( reqId, get_from_db=self.get_jasper_reqid_data_from_db, args=[reqId]) if not data: utils.delete_jasper_session( reqId, "tabJasperReqids where reqid='%s'" % reqId) return frappe._dict({'data': data})
def get_jasper_reqid_data(self, reqId): data = utils.get_jasper_data(reqId, get_from_db=self.get_jasper_reqid_data_from_db, args=[reqId]) if not data: utils.delete_jasper_session(reqId, "tabJasperReqids where reqid='%s'" % reqId) return frappe._dict({'data': data})
def delete_jasper_session(self): utils.delete_jasper_session("jaspersession")