| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Download
A download of a single resource to a temporary file.
| Instance Methods | |||
|
|||
|
|||
|
|||
| int | None |
|
||
| int |
|
||
|
|||
|
Inherited from |
|||
| Instance Variables | |
| bool |
aborted_by_user whether anyone has called abort |
| int |
child_pid the child process's PID |
| tasks.Blocker |
downloaded triggered when the download ends (on success or failure) |
| str |
errors data received from the child's stderr |
| int | None |
expected_size the expected final size of the file |
| object |
hint hint passed by and for caller |
| (download_starting | download_fetching | download_failed | download_complete) |
status the status of the download |
| file |
tempfile the file storing the downloaded data |
| str |
url the URL of the resource being fetched |
| Properties | |
|
Inherited from |
| Method Details |
Create a new download object.
Postcondition: status == download_starting. |
Create a temporary file and begin the download. Precondition: status == download_starting |
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 Sat Jun 21 21:21:16 2008 | http://epydoc.sourceforge.net |