def get_uids(self, project=None):
self._update()<EOL>if not project or project.endswith('<STR_LIT>'):<EOL><INDENT>return [self._gen_uid(task['<STR_LIT>']) for project in self._tasks for task in self._tasks[project].values()]<EOL><DEDENT>if basename(project) not in self._tasks:<EOL><INDENT>return []<EOL><DEDENT>return [self._gen_uid(uuid) for uuid in self._tasks[basename(project)]]<EOL>
Return a list of UIDs
        project -- the Project to filter for