def db_get_port(self, key):
        try:
            return self.db_ports_id_index[key]
        except __HOLE__:
            for i in xrange(len(self._db_ports)):
                if self._db_ports[i]._db_id == key:
                    return self._db_ports[i]
        return None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v0_9_1/domain/auto_gen.py/DBConnection.db_get_port