Part of lp.codehosting.codeimport.uifactory View In Hierarchy
The goal is to produce a line of output no more often than once a minute (by default).
Method | __init__ | Construct a LoggingUIFactory . |
Method | show_user_warning | Undocumented |
Method | show_warning | Undocumented |
Method | get_username | Undocumented |
Method | get_password | Undocumented |
Method | show_message | Undocumented |
Method | note | Undocumented |
Method | show_error | Undocumented |
Method | report_transport_activity | Called by transports as they do IO. |
Method | _progress_updated | A task has been updated and wants to be displayed. |
Method | _progress_all_finished | Undocumented |
LoggingUIFactory
.Parameters | time_source | A callable that returns time in seconds since the epoch. Defaults to time.time and should be replaced with something deterministic in tests. |
logger | The logger object to write to | |
interval | Don't produce output more often than once every this many seconds. Defaults to 60 seconds. |