Fix 0002184: BUG: IndexError: tuple index out of range
svn: r10819
This commit is contained in:
parent
e45bec4eb7
commit
5d8934efa2
@ -157,14 +157,17 @@ class CommandLineReport:
|
|||||||
"whatever_name"))
|
"whatever_name"))
|
||||||
|
|
||||||
if self.category == CATEGORY_TEXT:
|
if self.category == CATEGORY_TEXT:
|
||||||
|
print len(_textdoc_list), _textdoc_list
|
||||||
|
print len(self.options_dict), self.options_dict
|
||||||
for item in _textdoc_list:
|
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]
|
self.format = item[1]
|
||||||
if self.format is None:
|
if self.format is None:
|
||||||
# Pick the first one as the default.
|
# Pick the first one as the default.
|
||||||
self.format = _textdoc_list[0][1]
|
self.format = _textdoc_list[0][1]
|
||||||
self.options_help['off'][2] = \
|
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
|
self.options_help['off'][3] = False
|
||||||
elif self.category == CATEGORY_DRAW:
|
elif self.category == CATEGORY_DRAW:
|
||||||
for item in _drawdoc_list:
|
for item in _drawdoc_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user