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

Class Selection

source code

object --+
         |
        Selection

A single selected implementation in a Selections set.

Instance Methods
 
local_path(self) source code
str
__repr__(self)
repr(x)
source code
bool
is_available(self, stores)
Is this implementation available locally? (a local implementation or a cached ZeroInstallImplementation)
source code
str | None
get_path(self, stores, missing_ok=False)
Return the root directory of this implementation.
source code

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

Class Variables
  interface = property(lambda self: self.attrs ['interface'])
  id = property(lambda self: self.attrs ['id'])
  feed = property(lambda self: self.attrs.get('from-feed', self....
  main = property(lambda self: self.attrs.get('main', None))
Instance Variables
str version = property(lambda self: self.attrs ['version'])
the implementation's version number
{str: str} attrs
XML attributes map (name is in the format "{namespace} {localName}")
[model.Dependency] dependencies
list of dependencies
Properties

Inherited from object: __class__

Method Details

local_path(self)

source code 
Decorators:
  • @property

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: str
Overrides: object.__repr__

is_available(self, stores)

source code 

Is this implementation available locally? (a local implementation or a cached ZeroInstallImplementation)

Returns: bool

Since: 0.53

get_path(self, stores, missing_ok=False)

source code 

Return the root directory of this implementation. For local implementations, this is local_path. For cached implementations, this is the directory in the cache.

Parameters:
  • stores (zerostore.Stores) - stores to search
  • missing_ok (bool) - return None for uncached implementations
Returns: str | None
the path of the directory

Since: 1.8


Class Variable Details

feed

Value:
property(lambda self: self.attrs.get('from-feed', self.interface))