b.u.SilentUIFactory(NoninteractiveUIFactory) : class documentation

Part of bzrlib.ui View In Hierarchy

Known subclasses: bzrlib.ui.CannedInputUIFactory

A UI Factory which never prints anything.

This is the default UI, if another one is never registered by a program using bzrlib, and it's also active for example inside 'bzr serve'.

Methods that try to read from the user raise an error; methods that do output do nothing.

Method __init__ Undocumented
Method note Undocumented
Method get_username Undocumented
Method show_error Show an error message (not an exception) to the user.
Method show_message Show a message to the user.
Method show_warning Show a warning to the user.
Method _make_output_stream_explicit Undocumented

Inherited from NoninteractiveUIFactory:

Method confirm_action Seek user confirmation for an action.
Method __repr__ Undocumented

Inherited from UIFactory (via NoninteractiveUIFactory):

Method __enter__ Context manager entry support.
Method __exit__ Context manager exit support.
Method be_quiet Tell the UI to be more quiet, or not.
Method get_password Prompt the user for a password.
Method is_quiet Undocumented
Method make_output_stream Get a stream for sending out bulk text data.
Method nested_progress_bar Return a nested progress bar.
Method clear_term Prepare the terminal for output.
Method format_user_warning Undocumented
Method choose Prompt the user for a list of alternatives.
Method get_boolean Get a boolean question answered from the user.
Method get_integer Get an integer from the user.
Method make_progress_view Construct a new ProgressView object for this UI.
Method recommend_upgrade Recommend the user upgrade a control directory.
Method report_transport_activity Called by transports as they do IO.
Method log_transport_activity Write out whatever transport activity has been measured.
Method show_user_warning Show a warning to the user.
Method _progress_finished Called by the ProgressTask when it finishes
Method _progress_all_finished Called when the top-level progress task finished
Method _progress_updated Called by the ProgressTask when it changes.
def __init__(self):
def note(self, msg):
def get_username(self, prompt, **kwargs):
def _make_output_stream_explicit(self, encoding, encoding_type):
def show_error(self, msg):
Show an error message (not an exception) to the user.

The message should not have an error prefix or trailing newline. That will be added by the factory if appropriate.

def show_message(self, msg):
Show a message to the user.
def show_warning(self, msg):
Show a warning to the user.
API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.