~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/ui.txt

  • Committer: Martin Pool
  • Date: 2010-09-10 06:32:07 UTC
  • mto: This revision was merged to the branch mainline in revision 5426.
  • Revision ID: mbp@sourcefrog.net-20100910063207-82871daw01foitkz
Brief developer guide entry about confirmations

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
used for programmer convenience, but not performing unpredictably in the
25
25
presence of different locales.
26
26
 
 
27
Confirmation
 
28
------------
 
29
 
 
30
There are some operations, such as uncommitting, or breaking a lock, where
 
31
bzr may want to get confirmation from the user before proceeding.
 
32
However in some circumstances bzr should just go ahead without asking: if
 
33
it's being used from a noninteractive program, or if the user's asked to
 
34
never be asked for this particular confirmation or for any confirmations
 
35
at all.
 
36
 
 
37
We provide a special UIFactory method `confirm_action` to do this.  It
 
38
takes a `confirmation_id` parameter that acts as a symbolic name for the
 
39
type of confirmation, so the user can configure them off.  (This is not
 
40
implemented at present.)
 
41
 
27
42
 
28
43
Writing Output
29
44
==============