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

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

src/m/e/mediadrop-HEAD/mediadrop/websetup.py   mediadrop(Download)
 
    # Save everything, along with the dummy data if applicable
    DBSession.commit()
    events.Environment.database_ready()
 

src/m/e/mediadrop-HEAD/mediadrop/lib/players.py   mediadrop(Download)
        prefs.data = cls.default_data
        DBSession.add(prefs)
        DBSession.commit()
 
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/media.py   mediadrop(Download)
        try:
            media.increment_views()
            DBSession.commit()
        except OperationalError:
            DBSession.rollback()

src/m/e/mediadrop-HEAD/batch-scripts/upgrade/upgrade_from_v09_preserve_facebook_xid_comments.py   mediadrop(Download)
        media.meta[u'facebook-comment-xid'] = unicode(media.id)
        DBSession.add(media)
        DBSession.commit()
 
    progress.finish()

src/m/e/mediadrop-HEAD/mediadrop/tests/functional/test_admin_media.py   mediadrop(Download)
            media.reviewed = False
            DBSession.add(media)
            DBSession.commit()
            media_id = media.id
        except SQLAlchemyError, e:
            media.reviewed = False
            DBSession.add(media)
            DBSession.commit()
            media_id = media.id
        except SQLAlchemyError, e:
            media.reviewed = False
            DBSession.add(media)
            DBSession.commit()
            media_id = media.id
        except SQLAlchemyError, e:

src/m/e/mediadrop-HEAD/mediadrop/controllers/tests/login_test.py   mediadrop(Download)
        admin_perm.groups.append(second_admin_group)
        admin = User.example(groups=[second_admin_group])
        DBSession.commit()
        perm = MediaDropPermissionSystem.permissions_for_user(admin, config)
        assert_true(perm.contains_permission(u'admin'))