def set_report(name, content): report = Report.find_by_name(name) if report is None: report = Report() report.name = name report.content = content report.put()
def get_report(name): report = Report.find_by_name(name) if report is None: return (None, None) else: return (report.content, report.updated_on.strftime('%Y-%m-%d %H:%M:%S'))