'Resume paused jobs the active history -- this does not require a logged in user.'

@web.expose
def resume_paused_jobs(self, trans, current=False, ids=None):

    if ((not ids) and galaxy.util.string_as_bool(current)):
        histories = [trans.get_history()]
        refresh_frames = ['history']
    else:
        raise NotImplementedError('You    can    currently    only    resume    all    the    datasets    of    the    current    history.')
    for history in histories:
        history.resume_paused_jobs()
        trans.sa_session.add(history)
    trans.sa_session.flush()
    return trans.show_ok_message('Your    jobs    have    been    resumed.', refresh_frames=refresh_frames)
