def jobs(self, session_id):
        session = self.get(session_id, json=True)
        jobs = []

        if session is None:
            return jobs

        try:
            jobs = [utils.JobsInSessionObject(k,
                                              session_id,
                                              v['client_id'],
                                              v['result'])
                    for k, v in session['jobs'].iteritems()]
        except __HOLE__ as error:
            LOG.error(error.message)
        return jobs
dataset/ETHPy150Open openstack/freezer-web-ui/disaster_recovery/api/api.py/Session.jobs