removed color from copy failed error message

This commit is contained in:
Goffi 2010-09-30 16:27:28 +08:00
parent ea3b75a565
commit 7e6275ab07
1 changed files with 2 additions and 6 deletions

8
gcp
View File

@ -76,10 +76,6 @@ const_FILES_DIR = "~/.gcp"
const_JOURNAL_PATH = const_FILES_DIR + "/journal" const_JOURNAL_PATH = const_FILES_DIR + "/journal"
const_SAVED_LIST = const_FILES_DIR + "/saved_list" const_SAVED_LIST = const_FILES_DIR + "/saved_list"
COLOR_RED = "\033[00;31m"
COLOR_END = '\033[0m'
class DbusObject(dbus.service.Object): class DbusObject(dbus.service.Object):
@ -166,8 +162,8 @@ class Journal():
partial.discard(entry) partial.discard(entry)
if failed: if failed:
error(_(COLOR_RED+"/!\\ THE FOLLOWING FILES WERE NOT SUCCESSFULY COPIED:" + COLOR_END)) error(_("/!\\ THE FOLLOWING FILES WERE *NOT* SUCCESSFULY COPIED:"))
#TODO: use logging capability to print all error message in read instead of COLOR_RED #TODO: use logging capability to print all error message in red
for entry in failed: for entry in failed:
info("\t- %s" % entry) info("\t- %s" % entry)
info ('--\n') info ('--\n')