From f699b674ac4106f80f767fe999fe85a6072ae260 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Apr 2013 09:37:42 +0200 Subject: [PATCH] [FIX] comment and forgotten print statement --- account_statement_base_completion/statement.py | 2 -- account_statement_base_import/statement.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/account_statement_base_completion/statement.py b/account_statement_base_completion/statement.py index 748dfa02..67d87b8c 100644 --- a/account_statement_base_completion/statement.py +++ b/account_statement_base_completion/statement.py @@ -499,7 +499,6 @@ class AccountBankSatement(orm.Model): error_type, error_value, trbk = sys.exc_info() st = "Error: %s\nDescription: %s\nTraceback:" % (error_type.__name__, error_value) st += ''.join(traceback.format_tb(trbk, 30)) - print st _logger.error(st) if res: #stat_line_obj.write(cr, uid, [line.id], vals, context=ctx) @@ -510,7 +509,6 @@ class AccountBankSatement(orm.Model): error_type, error_value, trbk = sys.exc_info() st = "Error: %s\nDescription: %s\nTraceback:" % (error_type.__name__, error_value) st += ''.join(traceback.format_tb(trbk, 30)) - print st _logger.error(st) # we can commit as it is not needed to be atomic # commiting here adds a nice perfo boost diff --git a/account_statement_base_import/statement.py b/account_statement_base_import/statement.py index d35949e1..08148cbf 100644 --- a/account_statement_base_import/statement.py +++ b/account_statement_base_import/statement.py @@ -284,8 +284,7 @@ class AccountStatementLine(Model): def _update_line(self, cr, uid, vals, context=None): """ Do raw update into database because ORM is awfully slow - when doing batch write. It is a shame that batch function - does not exist""" + when cheking security.""" cols = self._get_available_columns([vals]) tmp_vals = (', '.join(['%s = %%(%s)s' % (i, i) for i in cols])) sql = "UPDATE account_bank_statement_line SET %s where id = %%(id)s;" % tmp_vals