Method to get the id list of department manager.
772468
def get_dept_manager_ids(self):
        """"""
        self.logger.info("%s\t%s" % (self.request_method, self.request_url))
        return self.json_response.get("deptManagerUseridList", None)
463429
def document_ids(self):
        """"""
        matches = [PCC_DOCID_RE.match(os.path.basename(fname))
                   for fname in pcc.tokenization]
        return sorted(match.groups()[0] for match in matches)
683123
def get_depts(self, dept_name=None):
        """"""
        depts = self.json_response.get("department", None)
        params = self.kwargs.get("params", None)
        fetch_child = params.get("fetch_child", True) if params else True
        if dept_name is not None:
            depts = [dept for dept in depts if dept["name"] == dept_name]
        depts = [{"id": dept["id"], "name": dept["name"]} for dept in depts]
        self.logger.info("%s\t%s" % (self.request_method, self.request_url))
        return depts if fetch_child else depts[0]
1024861
def get_sub_dept_ids(self):
        """"""
        self.logger.info("%s\t%s" % (self.request_method, self.request_url))
        return self.json_response.get("sub_dept_id_list", None)
290901
def get_ids(cs):
    """"""
    records = []
    for c in cs:
        records.append({k: c[k] for k in c if k in {'names', 'labels'}})
    return records
597909
def get_admin_ids(self):
        """"""
        admins = self.json_response.get("admin_list", None)
        admin_ids = [admin_id for admin_id in admins["userid"]]
        return admin_ids
704224
def get_child_ids(self):
        """"""
        if self.has_magic_children():
            if self._child_parts is None:
                self.generate_children()
            child_ids = list()
            for part in self._child_parts:
                child_ids.append(part.get_id())
            return IdList(child_ids,
                          runtime=self.my_osid_object._runtime,
                          proxy=self.my_osid_object._runtime)
        raise IllegalState()
1049873
def list_managers_view(request):
    '''  '''
    managerset = Manager.objects.filter(active=True)
    return render_to_response('list_managers.html', {
        'page_name': "Managers",
        'managerset': managerset,
        }, context_instance=RequestContext(request))
833296
def list_roles(self):
        """"""

        json_resp = self.get_roles()
        temp_dict = {}
        for item in json_resp:
            temp_dict[item["name"]] = item["id"]
        return temp_dict
143370
def get_branding_ids(self):
        
        if 'brandingIds' not in self.my_osid_object._my_map:
            return IdList([])
        id_list = []
        for idstr in self.my_osid_object._my_map['brandingIds']:
            id_list.append(Id(idstr))
        return IdList(id_list)
26922
def _ids(self):
        """"""
        for pk in self._pks:
            yield getattr(self, pk)

        for pk in self._pks:

            try:
                yield str(getattr(self, pk))
            except ValueError:
                pass
877591
def get_job_id_from_name(self, job_name):
        """"""
        jobs = self._client.list_jobs(jobQueue=self._queue, jobStatus='RUNNING')['jobSummaryList']
        matching_jobs = [job for job in jobs if job['jobName'] == job_name]
        if matching_jobs:
            return matching_jobs[0]['jobId']
1053683
def get(self):
        """"""
        new = self.manager.get(self)
        if new:
            self._add_details(new._info)
177925
function createIDList() {
        var doc = DocumentManager.getCurrentDocument();
        if (!doc) {
            return;
        }

        var idList = [];
        var docText = doc.getText();
        var lines = docText.split("\n");

        var regex = new RegExp(/\s+id\s*?=\s*?["'](.*?)["']/gi);
        var id, chFrom, chTo, i, line;
        for (i = 0; i < lines.length; i++) {
            line = lines[i];
            var info;
            while ((info = regex.exec(line)) !== null) {
                id = info[1];
                // TODO: this doesn't handle id's that share the
                // same portion of a name on the same line or when
                // the id and value are on different lines
                chFrom = line.indexOf(id);
                chTo = chFrom + id.length;
                idList.push(new FileLocation(null, i, chFrom, chTo, id));
            }
        }
        return idList;
    }
1141796
def idd2grouplist(fhandle):
    """"""
    try:
        txt = fhandle.read()
        return iddtxt2grouplist(txt)
    except AttributeError as e:
        txt = open(fhandle, 'r').read()
        return iddtxt2grouplist(txt)
567750
def get_ids(self, request_data, parameter_name='ids'):
        """"""
        if parameter_name not in request_data:
            raise ParseError("`{}` parameter is required".format(parameter_name))

        ids = request_data.get(parameter_name)
        if not isinstance(ids, list):
            raise ParseError("`{}` parameter not a list".format(parameter_name))

        if not ids:
            raise ParseError("`{}` parameter is empty".format(parameter_name))

        if any(map(lambda id: not isinstance(id, int), ids)):
            raise ParseError("`{}` parameter contains non-integers".format(parameter_name))

        return ids
795815
def get_ids(self, start=0, rows=1000, **query_dict):
        """"""
        resp_dict = self._get_query(start=start, rows=rows, **query_dict)
        return {
            'matches': resp_dict['response']['numFound'],
            'start': start,
            'ids': [d['id'] for d in resp_dict['response']['docs']],
        }