Esempio n. 1
0
def reply_msg(msg_id=None):
    """"""
    form = ReplayForm()
    if form.validate_on_submit():
        reply_msg = api_msg.get(msg_id)
        api_msg.create(content=form.content.data, sender=current_user, reply_msg=reply_msg)
        flash(gettext(u'Message is sent'))
        return redirect(url_for('.index'))
    return render_template('reply_msg.html', form=form, msg_id=msg_id)
Esempio n. 2
0
def detail_msg(msg_id):
    msg = api_msg.get(msg_id)
    msgs = []
    __build_msgs(msg, msgs)
    return render_template('detail.html', msgs=msgs)