Package park :: Package core :: Module condition :: Class IsFetched

Class IsFetched

source code


Wait for download to complete.
Nested Classes

Inherited from Condition: Cancelled

Instance Methods
 
__init__(self, url)
Generate a new atom with a unique id.
source code
 
start(self)
Run the condition.
source code
 
__str__(self)
str(x)
source code

Inherited from Atom: notify

Inherited from Condition: __and__, __call__, __invert__, __or__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Static Methods

Inherited from Atom: send

Class Variables

Inherited from Condition: cancelled, depends, ready

Properties

Inherited from object: __class__

Method Details

__init__(self, url)
(Constructor)

source code 
Generate a new atom with a unique id.
Overrides: object.__init__
(inherited documentation)

start(self)

source code 

Run the condition.

Do whatever processing is required to satisfy the condition then call self.notify(). Unless the processing is trivial the work should be done in a separate thread. Use the @threaded decorator from park.util.threads to mark the start method as threaded so that the caller doesn't have to know if the work is trivial.

Decorators:
  • @threaded
Overrides: Atom.start
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)