"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mysql/utilities/command/utilitiesconsole.py" between
mysql-utilities-1.6.4.tar.gz and mysql-utilities-1.6.5.tar.gz

About: MySQL Utilities is a package of utilities that are used for maintenance and administration of MySQL servers (written in Python).

utilitiesconsole.py  (mysql-utilities-1.6.4):utilitiesconsole.py  (mysql-utilities-1.6.5)
# #
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. # the Free Software Foundation; version 2 of the License.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
skipping to change at line 53 skipping to change at line 53
'text': 'Display help for a specific utility.'}, 'text': 'Display help for a specific utility.'},
{'name': 'show errors', {'name': 'show errors',
'alias': '', 'alias': '',
'text': 'Display errors captured during the execution of the utilities.'}, 'text': 'Display errors captured during the execution of the utilities.'},
{'name': 'clear errors', {'name': 'clear errors',
'alias': '', 'alias': '',
'text': 'clear captured errors.'}, 'text': 'clear captured errors.'},
{'name': 'show last error', {'name': 'show last error',
'alias': '', 'alias': '',
'text': 'Display the last error captured during the execution of the' 'text': 'Display the last error captured during the execution of the'
' utilities'} ' utilities'}
] ]
_UTILS_MISSING = "MySQL Utilities are either not installed or " + \ _UTILS_MISSING = "MySQL Utilities are either not installed or " + \
"are not accessible from this terminal." "are not accessible from this terminal."
class UtilitiesConsole(Console): class UtilitiesConsole(Console):
""" """
The UtilitiesConsole class creates a console for running MySQL Utilities. The UtilitiesConsole class creates a console for running MySQL Utilities.
This class uses the Console class to encapsulate the screen handling and This class uses the Console class to encapsulate the screen handling and
skipping to change at line 86 skipping to change at line 86
options[in] Array of options for controlling what is included options[in] Array of options for controlling what is included
and how operations perform (e.g., verbose) and how operations perform (e.g., verbose)
""" """
if options is None: if options is None:
options = {} options = {}
Console.__init__(self, _NEW_BASE_COMMANDS, options) Console.__init__(self, _NEW_BASE_COMMANDS, options)
try: try:
self.path = get_util_path(options.get("utildir", "")) self.path = get_util_path(options.get("utildir", ""))
if self.path is None: if self.path is None:
raise raise UtilError(_UTILS_MISSING)
except: except:
raise UtilError(_UTILS_MISSING) raise UtilError(_UTILS_MISSING)
self.utils = Utilities(options) self.utils = Utilities(options)
self.errors = [] self.errors = []
if self.quiet: if self.quiet:
self.f_out = tempfile.NamedTemporaryFile(delete=False) self.f_out = tempfile.NamedTemporaryFile(delete=False)
print("Quiet mode, saving output to {0}".format(self.f_out.name)) print("Quiet mode, saving output to {0}".format(self.f_out.name))
else: else:
self.f_out = None self.f_out = None
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS