def get(self, request, *args, **kwargs): name = u"Backlogman-board-{0}-{1}".format( self.story_map.project.name, self.story_map.name ) title = u"Backlogman: {0} - {1}".format( self.story_map.project.name, self.story_map.name ) return export_excel(self.story_map, name, title)
def excel_download(entity_id): """Download the file as Excel.""" finvis.aaa.require(fail_redirect="/login") entity = Entity.objects(id=entity_id)[0] response.content_type = 'application/vnd.ms-excel' response.add_header('Content-Disposition', 'attachment; filename="' + entity.name + '.xls"') return excel.export_excel(entity)
def get(self, request, *args, **kwargs): name = u"Backlogman-board-{0}-{1}".format(self.story_map.project.name, self.story_map.name) title = u"Backlogman: {0} - {1}".format(self.story_map.project.name, self.story_map.name) return export_excel(self.story_map, name, title)
excelData['iscreated'] = util.IS_CREATED_TRUE return all_excel_data if __name__ == "__main__": token = login.login_and_get_token() query_messages = queryIssue.query_issue(token) print 'query_messages', query_messages old_excel_data = excel.load_excel(excel_name_quality_issues_path) all_excel_data = comparativeData(old_excel_data, query_messages) if all_excel_data is not None: excel.export_excel(excel_name_quality_issues_path, all_excel_data) attach.attach_file(all_excel_data, token) excel_data = excel.load_excel(excel_name_quality_issues_path) i = 1 for data in excel_data: print i i = i + 1 print data print excel_data excel.export_excel_phabricator(excel_name_task_content_path, excel_data) excel.export_excel(excel_name_quality_issues_path, update_excel_data(all_excel_data))