def get_restitution(self, tr, allowed_methods): if 'evalresp' in allowed_methods: respfile = pjoin(self.tempdir, 'RESP.%s.%s.%s.%s' % tr.nslc_id) if not os.path.exists(respfile): raise eventdata.NoRestitution( 'no response information available for trace %s.%s.%s.%s' % tr.nslc_id) trans = trace.InverseEvalresp(respfile, tr) return trans else: raise eventdata.NoRestitution( 'no response information available for trace %s.%s.%s.%s' % tr.nslc_id)
def get_resp_file(self, tr): respfile = pjoin(self.tempdir, 'RESP.%s.%s.%s.%s' % tr.nslc_id) if not os.path.exists(respfile): raise eventdata.NoRestitution( 'no response information available for trace %s.%s.%s.%s' % tr.nslc_id) return respfile