~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Aaron Bentley
  • Date: 2007-08-21 01:32:29 UTC
  • mfrom: (2727 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: aaron.bentley@utoronto.ca-20070821013229-miopsemz249tv0bl
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    )
42
42
""")
43
43
 
44
 
from bzrlib.symbol_versioning import (deprecated_method, zero_eight)
45
 
 
46
44
 
47
45
class UIFactory(object):
48
46
    """UI abstraction.
55
53
        super(UIFactory, self).__init__()
56
54
        self._progress_bar_stack = None
57
55
 
58
 
    @deprecated_method(zero_eight)
59
 
    def progress_bar(self):
60
 
        """See UIFactory.nested_progress_bar()."""
61
 
        raise NotImplementedError(self.progress_bar)
62
 
 
63
56
    def get_password(self, prompt='', **kwargs):
64
57
        """Prompt the user for a password.
65
58
 
161
154
    This is the default UI, if another one is never registered.
162
155
    """
163
156
 
164
 
    @deprecated_method(zero_eight)
165
 
    def progress_bar(self):
166
 
        """See UIFactory.nested_progress_bar()."""
167
 
        return progress.DummyProgress()
168
 
 
169
157
    def get_password(self, prompt='', **kwargs):
170
158
        return None
171
159