Part of lp.archiveuploader.nascentuploadfile View In Hierarchy
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. |
Simply check is the given section is allowed for custom uploads. It returns an iterator over all the encountered errors and warnings.