Package zeroinstall :: Package injector :: Module model :: Class ZeroInstallImplementation
[frames] | no frames]

Class ZeroInstallImplementation

source code

    object --+    
             |    
Implementation --+
                 |
                ZeroInstallImplementation

An implementation where all the information comes from Zero Install.


Since: 0.28

Instance Methods
 
__init__(self, feed, id)
id can be a local path (string starting with /) or a manifest hash (eg "sha1=XXX")
source code
 
add_download_source(self, url, size, extract, start_offset=0, type=None)
Add a download source.
source code
 
set_arch(self, arch) source code

Inherited from Implementation: __cmp__, __repr__, __str__, get_stability, get_version

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

Class Variables
  dependencies = property(lambda self: dict([(x.interface, x) fo...
  arch = property(lambda self: _join_arch(self.os, self.machine)...

Inherited from Implementation: machine, os

Instance Variables

Inherited from Implementation: bindings, download_sources, feed, id, langs, main, metadata, released, requires, upstream_stability, user_stability, version

Properties

Inherited from object: __class__

Method Details

__init__(self, feed, id)
(Constructor)

source code 

id can be a local path (string starting with /) or a manifest hash (eg "sha1=XXX")

Overrides: object.__init__

Class Variable Details

dependencies

Value:
property(lambda self: dict([(x.interface, x) for x in self.requires if\
 isinstance(x, InterfaceDependency)]))

arch

Value:
property(lambda self: _join_arch(self.os, self.machine), set_arch)