c.l.i.l.ILibraryFileAliasSet(Interface) : interface documentation

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

Known implementations: canonical.launchpad.database.librarian.LibraryFileAliasSet

No interface docstring
Method create Create a file in the Librarian, returning the new alias.
Method __getitem__ Lookup an ILibraryFileAlias by id.
Method findBySHA1 Return all LibraryFileAlias whose content's sha1 match the given
def create(name, size, file, contentType, expires=None, debugID=None, restricted=False):
Create a file in the Librarian, returning the new alias.

An expiry time of None means the file will never expire until it is no longer referenced. An expiry of NEVER_EXPIRES means a file that will stay in the Librarian for ever. Setting it to another timestamp means that the file will expire and possibly be removed from the Librarian at this time. See LibrarianGarbageCollection.

If restricted is True, the file will be created through the IRestrictedLibrarianClient utility.

def __getitem__(key):
Lookup an ILibraryFileAlias by id.
def findBySHA1(sha1):
Return all LibraryFileAlias whose content's sha1 match the given sha1.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.