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

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

src/m/e/mediagoblin-0.6.1/mediagoblin/moderation/tools.py   mediagoblin(Download)
        report.is_comment_report():
            deleted_comment = report.comment
            Session.delete(deleted_comment)
            form.resolution_content.data += \
                u"\n{mod} deleted the comment.".format(

src/j/o/JoshuaGoblin-HEAD/mediagoblin/moderation/tools.py   JoshuaGoblin(Download)
        report.is_comment_report():
            deleted_comment = report.comment
            Session.delete(deleted_comment)
            form.resolution_content.data += \
                u"\n{mod} deleted the comment.".format(

src/m/e/mediagoblin-0.6.1/mediagoblin/db/util.py   mediagoblin(Download)
def clean_orphan_tags(commit=True):
    """Search for unused MediaTags and delete them"""
    q1 = Session.query(Tag).outerjoin(MediaTag).filter(MediaTag.id==None)
    for t in q1:
        Session.delete(t)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/util.py   JoshuaGoblin(Download)
def clean_orphan_tags(commit=True):
    """Search for unused MediaTags and delete them"""
    q1 = Session.query(Tag).outerjoin(MediaTag).filter(MediaTag.id==None)
    for t in q1:
        Session.delete(t)