[Moin-user] Page trails - ERROR
Glenn Collins
glenn at thefoundry.co.uk
Mon Aug 4 04:16:03 EDT 2003
I have just installed moinmoin successfully or so I though.
I appear to have one teething problem relating to page trails. When they
are turned on in the users preferences I get a python error. All else
appears to be working beautifully. MoinMoin 1.1
Any assistance would be greatly appreciated.
Output as follows...
------------------------------------------------------------------------
AttributeError: 'str' object has no attribute 'as_int' Python 2.2.1
/usr/bin/python
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__ = 'Attribute not found.'
__getitem__ = <bound method AttributeError.__getitem__ of
<exceptions.AttributeError instance at 0x8279394>>
__init__ = <bound method AttributeError.__init__ of
<exceptions.AttributeError instance at 0x8279394>>
__module__ = 'exceptions'
__str__ = <bound method AttributeError.__str__ of
<exceptions.AttributeError instance at 0x8279394>>
args = ("'str' object has no attribute 'as_int'",)
/usr/lib/python2.2/site-packages/MoinMoin/user.py in
addTrail(self=<MoinMoin.user.User instance>, pagename='RecentChanges')
357 # append new page, limiting the length
358 self._trail = filter(lambda p, pn=pagename: p != pn,
self._trail)
359 self._trail =
self._trail[-([self._MAX_TRAIL.as_int()-1]):]
self = <MoinMoin.user.User instance>, global _trail = undefined,
global _MAX_TRAIL = undefined, global as_int = undefined
360 self._trail.append(pagename)
361
/usr/lib/python2.2/site-packages/MoinMoin/Page.py in
send_page(self=<MoinMoin.Page.Page instance>,
request=<MoinMoin.request.Request instance>, msg='',
**keywords={'count_hit': 1})
389 # page trail?
390 if not print_mode and user.current.valid:
391 user.current.addTrail(self.page_name)
global user = <module 'MoinMoin.user' from
'/usr/lib/python2.2/site-packages/MoinMoin/user.py'>, global current =
undefined, global addTrail = undefined, self = <MoinMoin.Page.Page
instance>, global page_name = undefined
392 trail = user.current.getTrail()
393 if trail and user.current.show_page_trail:
/usr/lib/python2.2/site-packages/MoinMoin/cgimain.py in
run(properties={})
199 else:
200 try:
201 cgitb.handler()
cgitb = <module 'MoinMoin.support.cgitb' from
'/usr/lib/python2.2/site-packages/MoinMoin/support/cgitb.pyc'>, handler
= undefined
202 except:
203 cgi.print_exception(*saved_exc)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20030804/29fa6d9e/attachment.html>
More information about the Moin-user
mailing list