def preview_journal(): # get args uid = request.args.get('uid', "1") now_datetime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') date_time = request.form.get('dateTime', now_datetime) title = request.form.get('title', "") desp = request.form.get('desp', "") cids = request.form.get('cids', "") tmp_cids = request.form.get('tmp_cids', "") perm = request.form.get('shareOption', "public") app.logger.debug("Accessing previewjournal.html, datetime: %s", date_time) app.logger.debug("Accessing previewjournal.html, title: %s", title) app.logger.debug("Accessing previewjournal.html, desp: %s", desp) app.logger.debug("Accessing previewjournal.html, cids: %s", cids) app.logger.debug("Accessing previewjournal.html, tmp_cids: %s", tmp_cids) app.logger.debug("Accessing previewjournal.html, perm: %s", perm) # save journal jid = saveMyJournal(uid, date_time, title, desp, perm, cids, tmp_cids) # show journal journal_info = getJournalDetail(jid) resp = flask.make_response(flask.render_template( 'journaldetail.html', journal_info=journal_info, tmp_cids=tmp_cids, option="previewjournal")) return resp
def preview_journal(): # get args uid = request.args.get('uid', "1") now_datetime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') date_time = request.form.get('dateTime', now_datetime) title = request.form.get('title', "") desp = request.form.get('desp', "") cids = request.form.get('cids', "") tmp_cids = request.form.get('tmp_cids', "") perm = request.form.get('shareOption', "public") app.logger.debug("Accessing previewjournal.html, datetime: %s", date_time) app.logger.debug("Accessing previewjournal.html, title: %s", title) app.logger.debug("Accessing previewjournal.html, desp: %s", desp) app.logger.debug("Accessing previewjournal.html, cids: %s", cids) app.logger.debug("Accessing previewjournal.html, tmp_cids: %s", tmp_cids) app.logger.debug("Accessing previewjournal.html, perm: %s", perm) # save journal jid = saveMyJournal(uid, date_time, title, desp, perm, cids, tmp_cids) # show journal journal_info = getJournalDetail(jid) resp = flask.make_response( flask.render_template('journaldetail.html', journal_info=journal_info, tmp_cids=tmp_cids, option="previewjournal")) return resp
def get_journal_detal(): jid = request.args.get('jid', "1") app.logger.debug("Accessing journaldetail.html %s", jid) journal_info = getJournalDetail(jid) resp = flask.make_response( flask.render_template('journaldetail.html', journal_info=journal_info)) return resp
def get_journal_detal(): jid = request.args.get('jid', "1") app.logger.debug("Accessing journaldetail.html %s", jid) journal_info = getJournalDetail(jid) resp = flask.make_response(flask.render_template( 'journaldetail.html', journal_info=journal_info)) return resp