Module pisiprogress :: Class AbstractCallback
[hide private]
[frames] | no frames]

Class AbstractCallback

source code

Known Subclasses:

Each callback implementation (CLI or GUI) should overwrite this interface

Instance Methods [hide private]
 
__init__(self)
Constructor
source code
 
message(self, st)
Output a message to the user
source code
 
verbose(self, st)
Output a message (of lower interest) to the user
source code
 
error(self, st)
Pass on an error message to the user
source code
 
promptGeneric(self, prompt, default)
Prompt the user for a single entry to type in
source code
 
promptGenericConfirmation(self, prompt)
Ask user for a single confirmation (OK / Cancel)
source code
 
promptFilename(self, prompt, default)
Prompt the user for providing a file name
source code
 
askConfirmation(self, source, idList)
Use interaction for choosing which contact entry to keep in case of a conflict
source code
 
update(self, status)
This function should be called whenever new information has been made available and the UI should be updates somehow.
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor

Initializes a Progress instance.

askConfirmation(self, source, idList)

source code 

Use interaction for choosing which contact entry to keep in case of a conflict

Returns:
A dictionary which contains the action for each conflict entry; the key is the id of the contact entry, the value one out of a - keep entry from first source, b - keep value from second source and s - skip this entry (no change on either side)