Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Store a list of identifiers for a database

This is used as input for the '*_using_dbids' functions.

Constructed with the database name and list of identifier strings.

src/e/u/eutils-HEAD/EUtils/parse.py   eutils(Download)
            links.append(Datatypes.Link(pom_link["Id"].tostring(), score))
        linksetdbs[linkname] = Datatypes.LinkSetDb(dbto, linkname, links)
    return Datatypes.NeighborLinkSet(Datatypes.DBIds(dbfrom.lower(), idlist),
                                     linksetdbs)
 

src/e/u/eutils-HEAD/EUtils/__init__.py   eutils(Download)
    if db not in databases:
        raise TypeError("Unknown database: %s" % (db,))
    return Datatypes.DBIds(db, ids)
 
PLUS_STRAND = 1

src/e/u/eutils-HEAD/EUtils/HistoryClient.py   eutils(Download)
    def _get_dbids(self):
        infile = self.efetch(retmode = "text", rettype = "uilist")
        ids = parse.parse_fetch_identifiers(infile)
        return Datatypes.DBIds(self.cookie.db, ids)
    dbids = property(_get_dbids, None, None,

src/e/u/eutils-HEAD/EUtils/DBIdsClient.py   eutils(Download)
    def _get_dbids(self):
        infile = self.efetch(retmode = "text", rettype = "uilist")
        ids = parse.parse_fetch_identifiers(infile)
        return Datatypes.DBIds(self.records_dbids.db, ids)
    dbids = property(_get_dbids, None, None,
        searchinfo = parse.parse_search(infile, [None])
 
        dbids = Datatypes.DBIds(db, searchinfo.ids)
        return set_klass(self.eutils, dbids, searchinfo)