Package zeroinstall :: Package injector :: Module selections :: Class Selections
[frames] | no frames]

Class Selections

source code

object --+
         |
        Selections

A selected set of components which will make up a complete program.

Instance Methods
 
__init__(self, source)
Constructor.
source code
 
toDOM(self)
Create a DOM document for the selected implementations.
source code
 
__repr__(self)
repr(x)
source code
 
download_missing(self, iface_cache, fetcher)
Cache all selected implementations are available.
source code

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

Instance Variables
str interface
the interface of the program
{str: Selection} selections
the selected implementations
Properties

Inherited from object: __class__

Method Details

__init__(self, source)
(Constructor)

source code 

Constructor.

Parameters:
Overrides: object.__init__

toDOM(self)

source code 

Create a DOM document for the selected implementations. The document gives the URI of the root, plus each selected implementation. For each selected implementation, we record the ID, the version, the URI and (if different) the feed URL. We also record all the bindings needed.

Returns:
a new DOM Document

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

download_missing(self, iface_cache, fetcher)

source code 

Cache all selected implementations are available. Download any that are not present.

Parameters:
  • iface_cache - cache to find feeds with download information
  • fetcher - used to download missing implementations
Returns:
a tasks.Blocker or None