From 5d8934efa2586b1f76e5683b5cb3be83d4e592e9 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Wed, 18 Jun 2008 13:17:36 +0000 Subject: [PATCH] Fix 0002184: BUG: IndexError: tuple index out of range svn: r10819 --- src/ReportBase/_CommandLineReport.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ReportBase/_CommandLineReport.py b/src/ReportBase/_CommandLineReport.py index 53c495196..685935e4b 100644 --- a/src/ReportBase/_CommandLineReport.py +++ b/src/ReportBase/_CommandLineReport.py @@ -157,14 +157,17 @@ class CommandLineReport: "whatever_name")) if self.category == CATEGORY_TEXT: + print len(_textdoc_list), _textdoc_list + print len(self.options_dict), self.options_dict for item in _textdoc_list: - if item[7] == self.options_dict['off']: + print len(item), item + if item[6] == self.options_dict['off']: self.format = item[1] if self.format is None: # Pick the first one as the default. self.format = _textdoc_list[0][1] self.options_help['off'][2] = \ - [ item[7] for item in _textdoc_list ] + [ item[6] for item in _textdoc_list ] self.options_help['off'][3] = False elif self.category == CATEGORY_DRAW: for item in _drawdoc_list: