Remove ErrorDialog and WarningDialog from reports. Replace with User.warn() and User.notify_error().

svn: r18388
This commit is contained in:
Brian Matherly
2011-10-31 02:40:19 +00:00
parent 366daad079
commit 93ec059b3d
10 changed files with 85 additions and 87 deletions

View File

@@ -117,8 +117,7 @@ class User(gen.user.User):
def warn(self, title, warning):
"""
Warn the user. The user will be forced to acknowledge the warning before
proceeding.
Warn the user.
@param title: the title of the warning
@type title: str
@@ -126,12 +125,11 @@ class User(gen.user.User):
@type warning: str
@returns: none
"""
pass
print "%s %s" % (title, warning)
def notify_error(self, title, error):
"""
Notify the user of an error. The user will be forced to acknowledge the
error before proceeding.
Notify the user of an error.
@param title: the title of the error
@type title: str
@@ -139,4 +137,4 @@ class User(gen.user.User):
@type error: str
@returns: none
"""
pass
print "%s %s" % (title, warning)