Пример #1
0
 def manifest_path(self):
     """
     Get the relative URL path to the manifest.
     :return: The path component of the URL.
     :rtype: str
     """
     return join(self.alias[0], self.repo_id, Manifest.FILE_NAME)
Пример #2
0
 def link(self, units):
     # Add the URL to each unit.
     links = FilePublisher.link(self, units)
     for unit, relative_path in links:
         url = join(self.base_url, self.alias[0], relative_path)
         unit["_download"] = dict(url=url)
     return links