Added 'confirm' param to Action fields. If True, a confirmation popup will be shown before triggering the action.

This commit is contained in:
Gaetan Delannay 2010-03-29 20:44:28 +02:00
parent 3a7b5be03b
commit 0f2c4a1e34
9 changed files with 89 additions and 130 deletions

View file

@ -100,6 +100,9 @@ class PoMessage:
GOTO_LAST = 'Go to end'
GOTO_SOURCE = 'Go back'
WHATEVER = 'Whatever'
CONFIRM = 'Are you sure ?'
YES = 'Yes'
NO = 'No'
def __init__(self, id, msg, default, fuzzy=False, comments=[]):
self.id = id