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, local_path)
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, dest=None)
Add a download source.
source code
 
set_arch(self, arch) source code
bool
is_available(self, stores)
Is this Implementation available locally? (a local implementation, an installed distribution package, or a cached ZeroInstallImplementation)
source code

Inherited from Implementation: __cmp__, __eq__, __hash__, __le__, __repr__, __str__, get_stability, get_version

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

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

Inherited from Implementation: main, os

Instance Variables
[str] digests
a list of "algorith=value" or "algorith_value" strings (since 0.45)

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

Properties

Inherited from object: __class__

Method Details

__init__(self, feed, id, local_path)
(Constructor)

source code 

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

Parameters:
Overrides: object.__init__

add_download_source(self, url, size, extract, start_offset=0, type=None, dest=None)

source code 

Add a download source.

Parameters:
  • url (str)
  • extract (str)
  • start_offset (int)
  • dest (str | None)
  • type (str | None)
  • size (int)

set_arch(self, arch)

source code 
Parameters:
  • arch (str)

is_available(self, stores)

source code 

Is this Implementation available locally? (a local implementation, an installed distribution package, or a cached ZeroInstallImplementation)

Parameters:
Returns: bool
Overrides: Implementation.is_available

Class Variable Details

dependencies

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

arch

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