def set_playlist(db_session, name, songs):
    c = db_session.cursor()
    c.execute("""DELETE FROM playlists WHERE name = ?""", [name])
    c.execute("""INSERT INTO playlists (name, songs) VALUES (?, ?)""", [name, str(cPickle.dumps(songs))])
    db_session.commit()
    c.close()
Creates a live, modal popup PyQt user interface for a specified UI
dataset/ETHPy150Open bahamas10/Viridian/AmpacheTools/dbfunctions.py/set_playlist--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/ui_live.py/ui_popup