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

Class Restriction

source code

object --+
         |
        Restriction

A Restriction limits the allowed implementations of an Interface.

Instance Methods
bool
meets_restriction(self, impl)
Called by the solver.Solver to check whether a particular implementation is acceptable.
source code
 
__str__(self)
str(x)
source code
str
__repr__(self)
repr(x)
source code

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

Class Variables
  reason = _("Incompatible with user-specified requirements")
Properties

Inherited from object: __class__

Method Details

meets_restriction(self, impl)

source code 

Called by the solver.Solver to check whether a particular implementation is acceptable.

Returns: bool
False if this implementation is not a possibility

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: str
Overrides: object.__repr__