Actions
Feature #644
openNeed better way to display messages in dbugrade code
Start date:
06/08/2010
Due date:
% Done:
0%
Estimated time:
Description
dbupgrade.py and upgrade scripts are displaying messages like this:
print "\033[31merror database %s does not exist\033[0m"%(appiondbname) time.sleep(1)
The crazy characters are there to display the message in color, the sleep is so that there is a long enough pause in the output for the user to notice it.
Would be nice to have a display class that handles display formatting and timing. It would be nice for messages to optionally get stored in a log file. Perhaps the display class could call a logger.
Actions