~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4597.3.37.

Allows ui factories to query users for an integer.

* bzrlib/tests/test_ui.py:
(TestTextUIFactory.test_text_ui_get_integer,
CannedInputUIFactoryTests.test_canned_input_get_input): Tests.

* bzrlib/ui/__init__.py:
(UIFactory.get_integer): New definition.
(CannedInputUIFactory.get_integer): Implementation.

* bzrlib/ui/text.py:
(TextUIFactory.get_integer): Implementation.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: