Home | Trees | Indices | Help |
|
---|
|
object --+ | Download
A download of a single resource to a temporary file.
Instance Methods | |||
|
|||
|
|||
int | None |
|
||
int |
|
||
str |
|
||
|
|||
Inherited from |
Instance Variables | |
bool |
aborted_by_user whether anyone has called abort |
tasks.Blocker |
downloaded triggered when the download ends (on success or failure) |
int | None |
expected_size the expected final size of the file |
object |
hint hint passed by and for caller |
str | None |
mirror an alternative URL to try if this download fails |
(download_fetching | download_failed | download_complete) |
status the status of the download |
file |
tempfile the file storing the downloaded data |
bool |
unmodified whether the resource was not modified since the modification_time given at construction |
str |
url the URL of the resource being fetched |
Properties | |
Inherited from |
Method Details |
Create a new download object.
Postcondition: status == download_fetching. |
Signal the current download to stop. Postcondition: aborted_by_user |
Returns the current fraction of this download that has been fetched (from 0 to 1), or None if the total size isn't known.
|
Get the download progress. Will be zero if the download has not yet started.
|
str(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 26 18:14:06 2013 | http://epydoc.sourceforge.net |