def display(self): db = Database() file_id = self.request.POST['file_id'] file_datastore = db.search_datastore({'file_id': file_id}) pst_results = None for row in file_datastore: if 'pst' in row: pst_results = row['pst'] self.render_data = {'PSTViewer': {'email_dict': pst_results, 'file_id': file_id}}
def display(self): db = Database() file_id = self.request.POST['file_id'] file_datastore = db.search_datastore({'file_id': file_id}) pst_results = None for row in file_datastore: if 'pst' in row: pst_results = row['pst'] self.render_data = { 'PSTViewer': { 'email_dict': pst_results, 'file_id': file_id } }
def display(self): db = Database() file_id = self.request.POST['file_id'] file_datastore = db.search_datastore({'file_id': file_id}) vt_results = None state = 'Not Checked' for row in file_datastore: if 'vt' in row: vt_results = row['vt'] if vt_results: state = 'complete' else: state = 'pending' self.render_data = {'VirusTotalSearch': {'state': state, 'vt_results': vt_results, 'file_id': file_id}}