Browse Source

[pep8] - review : replace _logger.log(logging.DEBUG by _logger.debug( / use , instead of % for interpolation

pull/6/head
Laetitia Gangloff 10 years ago
parent
commit
6b4bd72004
  1. 6
      account_journal_report_xls/report/nov_account_journal_xls.py
  2. 8
      account_move_line_report_xls/report/move_line_list_xls.py

6
account_journal_report_xls/report/nov_account_journal_xls.py

@ -276,7 +276,7 @@ class account_journal_xls(report_xls):
debit_cell = rowcol_to_cell(row_pos, debit_pos)
credit_cell = rowcol_to_cell(row_pos, credit_pos)
bal_formula = debit_cell + '-' + credit_cell
_logger.log(logging.DEBUG, 'dummy call - %s' % bal_formula)
_logger.debug('dummy call - %s', bal_formula)
c_specs = map(
lambda x: self.render(x, self.col_specs_lines_template,
'lines'), wanted_list)
@ -290,11 +290,11 @@ class account_journal_xls(report_xls):
debit_start = rowcol_to_cell(aml_start_pos, debit_pos)
debit_stop = rowcol_to_cell(row_pos - 1, debit_pos)
debit_formula = 'SUM(%s:%s)' % (debit_start, debit_stop)
_logger.log(logging.DEBUG, 'dummy call - %s' % debit_formula)
_logger.debug('dummy call - %s', debit_formula)
credit_start = rowcol_to_cell(aml_start_pos, credit_pos)
credit_stop = rowcol_to_cell(row_pos - 1, credit_pos)
credit_formula = 'SUM(%s:%s)' % (credit_start, credit_stop)
_logger.log(logging.DEBUG, 'dummy call - %s' % credit_formula)
_logger.debug('dummy call - %s', credit_formula)
debit_cell = rowcol_to_cell(row_pos, debit_pos)
credit_cell = rowcol_to_cell(row_pos, credit_pos)
bal_formula = debit_cell + '-' + credit_cell

8
account_move_line_report_xls/report/move_line_list_xls.py

@ -339,7 +339,7 @@ class move_line_xls(report_xls):
debit_cell = rowcol_to_cell(row_pos, debit_pos)
credit_cell = rowcol_to_cell(row_pos, credit_pos)
bal_formula = debit_cell + '-' + credit_cell
_logger.log(logging.DEBUG, 'dummy call - %s' % bal_formula)
_logger.debug('dummy call - %s', bal_formula)
c_specs = map(
lambda x: self.render(x, self.col_specs_template, 'lines'),
wanted_list)
@ -352,15 +352,15 @@ class move_line_xls(report_xls):
debit_start = rowcol_to_cell(row_pos - aml_cnt, debit_pos)
debit_stop = rowcol_to_cell(row_pos - 1, debit_pos)
debit_formula = 'SUM(%s:%s)' % (debit_start, debit_stop)
_logger.log(logging.DEBUG, 'dummy call - %s' % debit_formula)
_logger.debug('dummy call - %s', debit_formula)
credit_start = rowcol_to_cell(row_pos - aml_cnt, credit_pos)
credit_stop = rowcol_to_cell(row_pos - 1, credit_pos)
credit_formula = 'SUM(%s:%s)' % (credit_start, credit_stop)
_logger.log(logging.DEBUG, 'dummy call - %s' % credit_formula)
_logger.debug('dummy call - %s', credit_formula)
debit_cell = rowcol_to_cell(row_pos, debit_pos)
credit_cell = rowcol_to_cell(row_pos, credit_pos)
bal_formula = debit_cell + '-' + credit_cell
_logger.log(logging.DEBUG, 'dummy call - %s' % bal_formula)
_logger.debug('dummy call - %s', bal_formula)
c_specs = map(
lambda x: self.render(x, self.col_specs_template, 'totals'),
wanted_list)

Loading…
Cancel
Save