Remove ErrorDialog and WarningDialog from reports. Replace with User.warn() and User.notify_error().
svn: r18388
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user