print encoded string
This commit is contained in:
parent
feebe42b81
commit
72270f3596
1 changed files with 4 additions and 4 deletions
|
|
@ -69,10 +69,10 @@ class ConsoleApplication(BaseApplication):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _handle_app_options(self):
|
def _handle_app_options(self):
|
||||||
self._formatter = formatters[self.options.formatter]
|
self.formatter = formatters[self.options.formatter]
|
||||||
|
|
||||||
if self.options.select:
|
if self.options.select:
|
||||||
self._formatter.display_keys = False
|
self.formatter.display_keys = False
|
||||||
if self.options.select == '*':
|
if self.options.select == '*':
|
||||||
self.selected_fields = None
|
self.selected_fields = None
|
||||||
else:
|
else:
|
||||||
|
|
@ -154,7 +154,7 @@ class ConsoleApplication(BaseApplication):
|
||||||
logging.error(errors)
|
logging.error(errors)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
self._formatter.flush()
|
self.formatter.flush()
|
||||||
|
|
||||||
# Process result if value is returned by command
|
# Process result if value is returned by command
|
||||||
if isinstance(command_result, (str, unicode)):
|
if isinstance(command_result, (str, unicode)):
|
||||||
|
|
@ -200,7 +200,7 @@ class ConsoleApplication(BaseApplication):
|
||||||
|
|
||||||
def format(self, result):
|
def format(self, result):
|
||||||
try:
|
try:
|
||||||
self._formatter.format(result, selected_fields=self.selected_fields, condition=self.condition)
|
self.formatter.format(result, selected_fields=self.selected_fields, condition=self.condition)
|
||||||
except ResultsConditionException, e:
|
except ResultsConditionException, e:
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue