Package zeroinstall :: Module apps :: Class App
[frames] | no frames]

Class App

source code

object --+
         |
        App

Instance Methods
 
__init__(self, config, path)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_selections(self, sels, set_last_checked=True)
Store a new set of selections.
source code
selections.Selections
get_selections(self, snapshot_date=None, may_update=False, use_gui=None)
Load the selections.
source code
[str]
get_history(self)
Get the dates of the available snapshots, starting with the most recent.
source code
tasks.Blocker | None
download_selections(self, sels)
Download any missing implementations.
source code
 
set_requirements(self, requirements) source code
zeroinstall.injector.requirements.Requirements
get_requirements(self) source code
 
set_last_check_attempt(self) source code
 
set_last_checked(self) source code
float | None
get_last_checked(self)
Get the time of the last successful check for updates.
source code
float | None
get_last_check_attempt(self)
Get the time of the last attempted check.
source code
 
destroy(self) source code
 
integrate_shell(self, name) source code
str
get_name(self) source code
str
__str__(self)
str(x)
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, config, path)
(Constructor)

source code 

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

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

set_selections(self, sels, set_last_checked=True)

source code 

Store a new set of selections. We include today's date in the filename so that we keep a history of previous selections (max one per day), in case we want to to roll back later.

Parameters:

get_selections(self, snapshot_date=None, may_update=False, use_gui=None)

source code 

Load the selections. If may_update is True then the returned selections will be cached and available.

Parameters:
  • snapshot_date ((as returned by get_history) | None) - get a historical snapshot
  • may_update (bool) - whether to check for updates
  • use_gui (bool | None (never/always/if possible)) - whether to use the GUI for foreground updates
Returns: selections.Selections
the selections

download_selections(self, sels)

source code 

Download any missing implementations.

Parameters:
Returns: tasks.Blocker | None
a blocker which resolves when all needed implementations are available

set_requirements(self, requirements)

source code 
Parameters:

get_last_checked(self)

source code 

Get the time of the last successful check for updates.

Returns: float | None
the timestamp (or None on error)

get_last_check_attempt(self)

source code 

Get the time of the last attempted check.

Returns: float | None
the timestamp, or None if we updated successfully.

integrate_shell(self, name)

source code 
Parameters:
  • name (str)

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns: str
Overrides: object.__str__