diff options
| author | Martin Sivak <msivak@redhat.com> | 2010-08-30 14:28:40 +0200 |
|---|---|---|
| committer | Martin Sivak <msivak@redhat.com> | 2010-08-30 14:37:55 +0200 |
| commit | 2b4576172cfc845bd13fdb3002a48d9f5b526a9c (patch) | |
| tree | 712ccd5be51ce7c4aa18caa6d4181cfa449685b4 | |
| parent | 4ac2ac721a139325a35f48a631e2ff8b994eb2f6 (diff) | |
| download | firstaidkit-2b4576172cfc845bd13fdb3002a48d9f5b526a9c.tar.gz firstaidkit-2b4576172cfc845bd13fdb3002a48d9f5b526a9c.tar.xz firstaidkit-2b4576172cfc845bd13fdb3002a48d9f5b526a9c.zip | |
Add standardized return codes for Back and Abort actions
| -rw-r--r-- | pyfirstaidkit/returns.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyfirstaidkit/returns.py b/pyfirstaidkit/returns.py index 4757977..4e8786e 100644 --- a/pyfirstaidkit/returns.py +++ b/pyfirstaidkit/returns.py @@ -37,6 +37,12 @@ class ReturnFalse(Return): class ReturnNone(Return): pass +class ReturnBack(Return): + pass + +class ReturnAbort(Return): + pass + # # The Success and Failure return classes are implemented to give a more # intuitive/logical approach to the default flow. The value given to the return |
