Package zeroinstall :: Package injector :: Module requirements :: Class Requirements
[frames] | no frames]

Class Requirements

source code

object --+
         |
        Requirements

Holds information about what the user asked for (which program, version constraints, etc).

Instance Methods
 
__init__(self, interface_uri)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse_options(self, options) source code
bool
parse_update_options(self, options)
Update the settings based on the options (used for "0install update APP").
source code
[str]
get_as_options(self) source code
{model.Interface: [model.Restriction]}
get_extra_restrictions(self, iface_cache)
Create list of model.Restrictions for each interface, based on these requirements.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, interface_uri)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • interface_uri (str)
Overrides: object.__init__

parse_update_options(self, options)

source code 

Update the settings based on the options (used for "0install update APP").

Returns: bool
whether any settings were changed

Since: 1.9

get_extra_restrictions(self, iface_cache)

source code 

Create list of model.Restrictions for each interface, based on these requirements.

Parameters:
Returns: {model.Interface: [model.Restriction]}