[Moin-user] moin_config.py; show_section_numbers = 0
Roger Haase
crosseyedpenguin at yahoo.com
Mon Dec 30 20:23:02 EST 2002
I have run into this problem and have been unable to determine the
cause. When I try to set the value:
show_section_numbers = 0
in moin_config.py, I receive an abend on line 180 of text_html.py. I
am running a week-old CVS version. The abend occurs on every page
which does not have a "#pragma section-numbers off" opening line, and
it doesn't matter whether I set the show_section_numbers value to 0 or
1.
First few lines of abend follows.
Roger Haase
TypeError: unsupported operand type(s) for -: 'tuple' and 'int' Python
2.2.1
C:\PYTHON22\PYTHON.EXE
A problem occurred while running a Python script. Here is the sequence
of function calls leading up to the error, with the most recent
(innermost) call first. The exception attributes are:
__doc__ = 'Inappropriate argument type.'
__getitem__ = <bound method TypeError.__getitem__ of
<exceptions.TypeError instance at 0x00EE5B50>>
__init__ = <bound method TypeError.__init__ of
<exceptions.TypeError instance at 0x00EE5B50>>
__module__ = 'exceptions'
__str__ = <bound method TypeError.__str__ of
<exceptions.TypeError instance at 0x00EE5B50>>
args = ("unsupported operand type(s) for -: 'tuple' and 'int'",)
C:\home\roger\web\Moin\Lib\site-packages\MoinMoin\formatter\text_html.py
in heading(self=<MoinMoin.formatter.text_html.Formatter instance at
0x00EA0290>, depth=2, title='Help Contents', **kw={'icons': ''})
178 self.request._fmt_hd_counters.append(0)
179 self.request._fmt_hd_counters[-1] =
self.request._fmt_hd_counters[-1] + 1
180 number = '.'.join(map(str,
self.request._fmt_hd_counters[self._show_section_numbers-1:]))
number = '', global join = undefined, global map = undefined,
global str = undefined, self = <MoinMoin.formatter.text_html.Formatter
instance at 0x00EA0290>, global request = undefined, global
_fmt_hd_counters = undefined, global _show_section_numbers = undefined
181 if number: number += " "
182
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the Moin-user
mailing list