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

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

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/sql/convert.py   mediagoblin-spaetz(Download)
        add_obj_ids(entry, new_entry)
 
    session.commit()
    session.close()
 
            Session.add(new_attach)
 
    session.commit()
    session.close()
 
            session.add(media_data_row)
 
    session.commit()
    session.close()
 
        session.add(media_data_row)
 
    session.commit()
    session.close()
 
            session.add(ntag)
 
    session.commit()
    session.close()
 

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/sql/open.py   mediagoblin-spaetz(Download)
    def commit(self):
        Session.commit()
 
    def save(self, obj):
        Session.add(obj)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/db/sql/util.py   mediagoblin-spaetz(Download)
def atomic_update(table, query_dict, update_values):
    table.find(query_dict).update(update_values,
    	synchronize_session=False)
    Session.commit()
 
    # q2.delete(synchronize_session = False)
    if commit:
        Session.commit()