Package zeroinstall :: Package injector :: Module background :: Class BackgroundHandler
[frames] | no frames]

Class BackgroundHandler

source code

     object --+    
              |    
handler.Handler --+
                  |
                 BackgroundHandler

A Handler for non-interactive background updates. Runs the GUI if interaction is required.

Instance Methods
 
__init__(self, title, root)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_network_state(self) source code
 
confirm_import_feed(self, pending, valid_sigs)
Run the GUI if we need to confirm any keys.
source code
 
report_error(self, exception, tb=None)
Report an exception to the user.
source code
 
notify(self, title, message, timeout=0, actions=[])
Send a D-BUS notification message if possible.
source code

Inherited from handler.Handler: confirm_install, downloads_changed, get_download, impl_added_to_store, monitor_download, wait_for_blocker

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

Instance Variables

Inherited from handler.Handler: dry_run, monitored_downloads, n_completed_downloads, total_bytes_downloaded

Properties

Inherited from object: __class__

Method Details

__init__(self, title, root)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

confirm_import_feed(self, pending, valid_sigs)

source code 

Run the GUI if we need to confirm any keys.

Parameters:
  • pending - the new feed to be imported
  • valid_sigs - maps signatures to a list of fetchers collecting information about the key
Overrides: handler.Handler.confirm_import_feed

report_error(self, exception, tb=None)

source code 

Report an exception to the user.

Parameters:
  • exception - the exception to report
  • tb - optional traceback
Overrides: handler.Handler.report_error
(inherited documentation)

notify(self, title, message, timeout=0, actions=[])

source code 

Send a D-BUS notification message if possible. If there is no notification service available, log the message instead.