Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/pyrone-1.1.2/pyrone/views/blog.py   pyrone(Download)
    if len(c['errors']) == 0:
        for tag in article.tags:
            dbsession.delete(tag)
 
        for tag_str in c['tags']:
    # delete article and all article comments, invalidate tags too
    dbsession.query(Comment).filter(Comment.article_id == article_id).delete()
    dbsession.delete(article)
    h.get_public_tags_cloud(force_reload=True)
 
        return HTTPNotFound()
 
    dbsession.delete(comment)
    article = dbsession.query(Article).get(comment.article_id)
    _update_comments_counters(dbsession, article)