c.l.b.l.FileNavigationMixin : class documentation

Part of canonical.launchpad.browser.librarian View In Hierarchy

Known subclasses: lp.bugs.browser.bugattachment.BugAttachmentFileNavigation, lp.code.browser.diff.PreviewDiffNavigation, lp.code.browser.sourcepackagerecipebuild.SourcePackageRecipeBuildNavigation, lp.soyuz.browser.archive.ArchiveNavigation, lp.soyuz.browser.build.BuildNavigation

Navigate to LibraryFileAlias hosted in a context.

The navigation goes through +files/<filename> where file reference is provided by context getFileByName(filename).

The requested file is proxied via StreamOrRedirectLibraryFileAliasView, making it possible to serve both, public and restricted, files.

This navigation approach only supports domains with unique filenames, which is the case of IArchive and IBuild. It will probably have to be extended in order to allow traversing to multiple files potentially with the same filename (product files or bug attachments).

Method traverse_files Traverse on filename in the archive domain.
@stepthrough('+files')
def traverse_files(self, filename):
Traverse on filename in the archive domain.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.