def __getitem__(self, item):
        cu = self.db.cursor()
        cu.execute("SELECT instanceId FROM Instances WHERE "
                   "troveName=? AND versionId=? AND flavorId=?",
                   item)
        try:
            return cu.next()[0]
        except __HOLE__:
            raise KeyError, item
dataset/ETHPy150Open sassoftware/conary/conary/local/sqldb.py/DBInstanceTable.__getitem__