def get(self, *args):
        self.preflight()
        self.set_header('Content-Type', 'application/json')
        m = self.settings.get('manager')
        pname = "%s.%s" % (args[0], args[1])

        if not self.api_key.can_read(pname):
            raise HTTPError(403)

        try:
            pids = m.pids(pname)
        except ProcessError as e:
            self.set_status(e.errno)
            return self.write(e.to_dict())

        self.write({"pids": pids})
dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/http_handlers/jobs.py/PidsJobHandler.get/original