Part of lp.services.librarianserver.testing.fake View In Hierarchy
This takes the role of both the librarian client and the LibraryFileAlias utility.
Method | addFile | See IFileUploadClient . |
Method | remoteAddFile | See IFileUploadClient . |
Method | getURLForAlias | See IFileDownloadClient . |
Method | getURLForAliasObject | See IFileDownloadClient . |
Method | getFileByAlias | See IFileDownloadClient . |
Method | pretendCommit | Pretend that there's been a commit. |
Method | create | See ILibraryFileAliasSet . |
Method | __getitem__ | See ILibraryFileAliasSet . |
Method | findBySHA256 | See ILibraryFileAliasSet . |
Method | beforeCompletion | See ISynchronizer . |
Method | afterCompletion | See ISynchronizer . |
Method | newTransaction | See ISynchronizer . |
Method | _setUp | Fixture API: install as the librarian. |
Method | _storeFile | Like addFile , but returns the LibraryFileAlias . |
Method | _makeAlias | Create a LibraryFileAlias . |
Method | _makeLibraryFileContent | Create a LibraryFileContent . |
IFileDownloadClient
.When you add a file to the librarian (real or fake), it is not fully available until the transaction that added the file has been committed. Call this method to make the FakeLibrarian act as if there's been a commit, without actually committing a database transaction.
ILibraryFileAliasSet
.