~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2008-01-28 22:48:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3230.
  • Revision ID: bialix@ukr.net-20080128224819-88buaniv5dwy9vx4
$BZR_LOG is used to contol location of .bzr.log (use /dev/null or NUL to suppress log).

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