l.a.n.CustomUploadFile(NascentUploadFile) : class documentation

Part of lp.archiveuploader.nascentuploadfile View In Hierarchy

NascentUpload file for Custom uploads.

Custom uploads are anything else than source or binaries that are meant to be published in the archive.

They are usually Tarballs which are processed according its type and results in new archive files.

Method custom_type The custom upload type for this file. (None if not custom).
Method verify Verify CustomUploadFile.
Method storeInDatabase Create and return the corresponding LibraryFileAlias reference.
Method autoApprove Return whether this custom upload can be automatically approved.

Inherited from NascentUploadFile:

Method __init__ Undocumented
Method content_type The content type for this file.
Method filename Return the NascentUpload filename.
Method dirname Return the NascentUpload filename.
Method exists_on_disk Whether or not the file is present on disk.
Method checkNameIsTaintFree Verify if the filename contains forbidden characters.
Method checkSizeAndCheckSum Check the size and checksums of the nascent file.
@property
def custom_type(self):
The custom upload type for this file. (None if not custom).
def verify(self):
Verify CustomUploadFile.

Simply check is the given section is allowed for custom uploads. It returns an iterator over all the encountered errors and warnings.

def storeInDatabase(self):
Create and return the corresponding LibraryFileAlias reference.
def autoApprove(self):
Return whether this custom upload can be automatically approved.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.