~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Martin Pool
  • Date: 2007-08-15 04:33:34 UTC
  • mto: (2701.1.2 remove-should-cache)
  • mto: This revision was merged to the branch mainline in revision 2710.
  • Revision ID: mbp@sourcefrog.net-20070815043334-01dx9emb0vjiy29v
Remove things deprecated in 0.11 and earlier

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