~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4886.1.1.

  • Committer: Vincent Ladeuil
  • Date: 2009-12-10 16:54:28 UTC
  • mto: (4887.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4888.
  • Revision ID: v.ladeuil+lp@free.fr-20091210165428-n9nysxcuz0vwfm9o
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: