'Make sure the call to get_repo is retarded as much as possible.
Available is a class that is instantiated on the very beginning
of django bootstrap process, so we want to avoid unnecessary calls
for all the tools involved (autorepl, autosnap, syncdisks, webshell).
The method get_repo will result in a unix process fork for pbi_listrepo
that won\'t be available in a complete install.'

def _def_repo_id(self, repo_id=None):

    if (self.__def_repo is not None):
        return self.__repo_id
    self.__def_repo = True
    repo = self.get_repo(repo_id=repo_id, create=True)
    if repo:
        self.__repo_id = repo[0]
        self.__repo_desc = repo[1]
    return self.__repo_id
