/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: mbp at sourcefrog
  • Date: 2006-10-31 01:30:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2114.
  • Revision ID: mbp@sourcefrog.net-20061031013031-da3047f0d9fb1f64
Use regular progress-bar classes, not a special mechanism

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    def nested_progress_bar(self):
72
72
        """Return a nested progress bar.
73
73
 
74
 
        When the bar has been finished with, it should be released bu calling
 
74
        When the bar has been finished with, it should be released by calling
75
75
        bar.finished().
76
76
        """
77
77
        raise NotImplementedError(self.nested_progress_bar)
92
92
        """
93
93
        raise NotImplementedError(self.get_boolean)
94
94
 
95
 
    def show_progress_line(self, msg):
96
 
        """Show one line of text that will be cleared."""
97
 
        raise NotImplementedError(self.show_progress_line)
98
 
 
99
95
 
100
96
class CLIUIFactory(UIFactory):
101
97
    """Common behaviour for command line UI factories."""
142
138
    def clear_term(self):
143
139
        pass
144
140
 
145
 
    def show_progress_line(self, msg):
146
 
        pass
147
 
 
148
 
    def message(self, msg):
149
 
        pass
150
 
 
151
141
 
152
142
def clear_decorator(func, *args, **kwargs):
153
143
    """Decorator that clears the term"""