Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/j/u/june-HEAD/june/handlers/topic.py   june(Download)
from ..helpers import force_int, limit_request
from ..models import db, Node, Account
from ..models import Topic, Reply, LikeTopic
from ..models import fill_topics, fill_with_users
from ..forms import TopicForm, ReplyForm
        db.session.commit()
        return jsonify(status='ok', action='cancel')
    like = LikeTopic(account_id=g.user.id, topic_id=uid)
    db.session.add(like)
    db.session.commit()