~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2008-12-16 05:51:24 UTC
  • mto: (3882.7.11 progress)
  • mto: This revision was merged to the branch mainline in revision 3940.
  • Revision ID: mbp@sourcefrog.net-20081216055124-uxx9245lbuef07le
All UI factories should support note()

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
                own_fraction = 0.0
104
104
            return self._parent_task._overall_completion_fraction(own_fraction)
105
105
 
106
 
    def note(self, fmt_string, *args, **kwargs):
 
106
    def note(self, fmt_string, *args):
107
107
        """Record a note without disrupting the progress bar."""
108
108
        # XXX: shouldn't be here; put it in mutter or the ui instead
109
 
        self.ui_factory.clear_term()
110
 
        trace.note(fmt_string % args)
 
109
        self.ui_factory.note(fmt_string % args)
111
110
 
112
111
    def clear(self):
113
112
        # XXX: shouldn't be here; put it in mutter or the ui instead