def add_file(self, value):
     """create new DirContainer"""
     AbstractSharingData.add_file(self, value)
     for repo in self.files:
         if value.startswith(repo):
             raise ValueError("'%s' part of existing repo %s" % (value, repo))
         if repo.startswith(value):
             raise ValueError("'%s' conflicts with existing repo %s" % (value, repo))
         # else: continue
     self.files[value] = DirContainer(value)
 def add_file(self, value):
     """create new DirContainer"""
     AbstractSharingData.add_file(self, value)
     existing_repos = self.get_repositories()
     # update list of repositories
     for existing_repo in existing_repos:
         if value.startswith(existing_repo):
             raise ValueError("'%s' part of existing repo %s"\
                              %(value, existing_repo))
         if existing_repo.startswith(value):
             raise ValueError("'%s' conflicts with existing repo %s"\
                              %(value, existing_repo))
         # else: continue
     existing_repos.append(value)
     self._set_repositories(existing_repos)