Package zeroinstall :: Package injector :: Module handler :: Class ConsoleHandler
[frames] | no frames]

Class ConsoleHandler

source code

object --+    
         |    
   Handler --+
             |
            ConsoleHandler

A Handler that displays progress on stdout (a tty).


Since: 0.44

Instance Methods
 
downloads_changed(self)
This is just for the GUI to override to update its display.
source code
 
show_progress(self) source code
 
clear_display(self) source code
 
report_error(self, exception, tb=None)
Report an exception to the user.
source code
 
confirm_import_feed(self, pending, valid_sigs)
Sub-classes should override this method to interact with the user about new feeds.
source code
 
print(self, *args, **kwargs) source code

Inherited from Handler: __init__, confirm_install, 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__

Class Variables
  last_msg_len = None
Create a new digest.
  update = None
Create a new digest.
  disable_progress = 0
  screen_width = None
Create a new digest.
  original_print = None
Create a new digest.
Instance Variables

Inherited from Handler: dry_run, monitored_downloads, n_completed_downloads, total_bytes_downloaded

Properties

Inherited from object: __class__

Method Details

downloads_changed(self)

source code 

This is just for the GUI to override to update its display.

Overrides: Handler.downloads_changed
(inherited documentation)

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.report_error
(inherited documentation)

confirm_import_feed(self, pending, valid_sigs)

source code 

Sub-classes should override this method to interact with the user about new feeds. If multiple feeds need confirmation, trust.TrustMgr.confirm_keys will only invoke one instance of this method at a time.

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