Beispiel #1
0
def delete_article():
    try:
        article_id = request.form.get('article_id')
        article_server.delete_by_id(article_id)
        return u'删除成功'
    except Exception, e:
        return u'删除失败'
Beispiel #2
0
def delete_article():
    try:
        article_id = request.form.get('article_id')
        article_server.delete_by_id(article_id)
        return u'删除成功'
    except Exception, e:
        current_app.logger.error(traceback.format_exc())
        return u'删除失败'