|
@@ -1,15 +1,15 @@
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -20,16 +20,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
-"""Callback interface
|
|
|
+"""
|
|
|
+Callback interface
|
|
|
To be used when UI needs to be back to get info from user.
|
|
|
"""
|
|
|
|
|
|
-class Callback:
|
|
|
+
|
|
|
+
|
|
|
+class Callback(object):
|
|
|
"""Callback interface. Callback classes must implement this."""
|
|
|
def getinput(self, question):
|
|
|
"""Return text"""
|
|
|
pass
|
|
|
-
|
|
|
+
|
|
|
def getsecret(self, question):
|
|
|
"""Return key"""
|
|
|
pass
|
|
@@ -45,11 +48,3 @@ class Callback:
|
|
|
def notice(self, warning):
|
|
|
"""Present notice to user"""
|
|
|
pass
|
|
|
-
|
|
|
-
|
|
|
-class CallbackCancelException(Exception):
|
|
|
- def __init__(self, message):
|
|
|
- self.message = message
|
|
|
- def __str__(self):
|
|
|
- return "CallbackCancelException: %s" % (self.message)
|
|
|
-
|