formatters accept no backend name

This commit is contained in:
Christophe Benz 2010-07-06 14:42:45 +02:00
commit 41eea192f4
2 changed files with 10 additions and 6 deletions

View file

@ -203,9 +203,10 @@ class ConsoleApplication(BaseApplication):
def set_header(self, string):
self.formatter.set_header(string)
def format(self, result, backend_name):
def format(self, result, backend_name=None):
try:
self.formatter.format(result, backend_name, selected_fields=self.selected_fields, condition=self.condition)
self.formatter.format(obj=result, backend_name=backend_name,
selected_fields=self.selected_fields, condition=self.condition)
except ResultsConditionException, e:
logging.error(e)