def db_get_module(self, key):
        try:
            return self.db_modules_id_index[key]
        except __HOLE__:
            for module in self._db_modules:
                if module._db_id == key:
                    return module
        return None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v0_9_1/domain/auto_gen.py/DBWorkflow.db_get_module