Part of lp.archiveuploader.dscfile View In Hierarchy
Represents a file referred to in a DSC.
The DSC holds references to files, and it's easier to use regular
NascentUploadFiles to represent them, since they are in many ways
similar to a regular NU. However, there are the following warts:
- Component, section and priority are set to a bogus value and
do not apply.
- The actual file instance isn't used for anything but
validation inside DSCFile.verify(); there is no
store_in_database() method.
| Method | __init__ | Undocumented |
| Method | verify | Check Sub DSCFile mentioned size & checksum. |
Inherited from NascentUploadFile:
| 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 | storeInDatabase | Implement this to store this representation in the database. |
| Method | checkNameIsTaintFree | Verify if the filename contains forbidden characters. |
| Method | checkSizeAndCheckSum | Check the size and checksums of the nascent file. |