TypeError
AbsPageName() takes exactly 2 arguments (3 given)
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/python-support/python2.5/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>)
- 1305 self.page.send_page()
- 1306 else:
- 1307 handler(self.page.page_name, self)
- 1308
- 1309 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x9acff44>
- self = <MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>
- self.page = <MoinMoin.Page.Page object at 0x9b1d52c>
- self.page.page_name = u'RufusPollock'
/var/lib/python-support/python2.5/MoinMoin/action/__init__.py in do_show (pagename=u'RufusPollock', request=<MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x9b2fbec>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1195 format_args=pi['formatargs'],
- 1196 do_cache=do_cache,
- 1197 start_line=pi['lines'])
- 1198
- 1199 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x9b2ffec>, 'format': 'wiki_with_math', 'formatargs': '', 'language': 'en', 'lines': 1}
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x9b2fbec>, request=<MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>, body=u'\n= Rufus Pollock =\n\n== Useful bits of Maths ==\n\n...bliography(, label=yes)>>\n\n----\nCategoryHomepage\n', format='wiki_with_math', format_args='', do_cache=1, **kw={'start_line': 1})
- 1288 raise
- 1289 try:
- 1290 code = self.makeCache(request, parser)
- 1291 self.execute(request, parser, code)
- 1292 except Exception, e:
- code undefined
- self = <MoinMoin.Page.Page object at 0x9b2fbec>
- self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object at 0x9b2fbec>>
- request = <MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>
- parser = <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>
/var/lib/python-support/python2.5/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object at 0x9b2fbec>, request=<MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>, parser=<wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>)
- 1348 saved_current_lang = request.current_lang
- 1349 try:
- 1350 text = request.redirectedOutput(parser.format, formatter)
- 1351 finally:
- 1352 request.current_lang = saved_current_lang
- text undefined
- request = <MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>
- request.redirectedOutput = <bound method Request.redirectedOutput of <MoinM...equest.request_cgi.Request object at 0xb7f22c6c>>
- parser = <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>
- parser.format = <bound method Parser.format of <wikiconfig.plugi...ser.wiki_with_math.Parser instance at 0x9b7456c>>
- formatter = <MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>
/var/lib/python-support/python2.5/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_cgi.Request object at 0xb7f22c6c>, function=<bound method Parser.format of <wikiconfig.plugi...ser.wiki_with_math.Parser instance at 0x9b7456c>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>,), **kw={})
- 842 self.redirect(buf)
- 843 try:
- 844 function(*args, **kw)
- 845 finally:
- 846 self.redirect()
- function = <bound method Parser.format of <wikiconfig.plugi...ser.wiki_with_math.Parser instance at 0x9b7456c>>
- args = (<MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>,)
- kw = {}
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in format (self=<wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>, inhibit_p=False)
- 1527
- 1528 # Scan line, format and write
- 1529 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1530 self.request.write(formatted_line)
- 1531
- formatted_line = u'<p class="line867"><<<>>>jovanovic_ea_1994</a> '
- self = <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>
- self.scan = <bound method Parser.scan of <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>>
- line = u'<<Bibliography(, label=yes)>> '
- inhibit_p = False
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in scan (self=<wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>, line=u'<<Bibliography(, label=yes)>> ', inhibit_p=False)
- 1343 self.in_table or self.in_list):
- 1344 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1345 result.append(self.replace(match, inhibit_p))
- 1346 end = match.end()
- 1347 lastpos = end
- result = ['<p class="line867">']
- result.append = <built-in method append of list object at 0x9c50c0c>
- self = <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>
- self.replace = <bound method Parser.replace of <wikiconfig.plug...ser.wiki_with_math.Parser instance at 0x9b7456c>>
- match = <_sre.SRE_Match object at 0x9c0c218>
- inhibit_p = False
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in replace (self=<wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>, match=<_sre.SRE_Match object at 0x9c0c218>, inhibit_p=False)
- 1385 # Get replace method and replace hit
- 1386 replace_func = getattr(self, '_%s_repl' % type)
- 1387 result.append(replace_func(hit, match.groupdict()))
- 1388 return ''.join(result)
- 1389 else:
- result = []
- result.append = <built-in method append of list object at 0x9c52b8c>
- replace_func = <bound method Parser._macro_repl of <wikiconfig....ser.wiki_with_math.Parser instance at 0x9b7456c>>
- hit = u', label=yes'
- match = <_sre.SRE_Match object at 0x9c0c218>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object at 0x9c0c218>
/var/lib/python-support/python2.5/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>, word=u', label=yes', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})
- 1310 if self.macro is None:
- 1311 self.macro = macro.Macro(self)
- 1312 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
- 1313 _macro_name_repl = _macro_repl
- 1314 _macro_args_repl = _macro_repl
- self = <wikiconfig.plugin.parser.wiki_with_math.Parser instance at 0x9b7456c>
- self.formatter = <MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>>
- self.macro = <MoinMoin.macro.Macro instance at 0xb7e97c6c>
- macro_name = u'Bibliography'
- macro_args = u', label=yes'
- markup undefined
- groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
- groups.get = <built-in method get of dict object at 0x9c58bdc>
/var/lib/python-support/python2.5/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance at 0x9bcf9ec>, macro_obj=<MoinMoin.macro.Macro instance at 0xb7e97c6c>, name=u'Bibliography', args=u', label=yes', markup=u'<<Bibliography(, label=yes)>>')
- 190 # XXX: why is this necessary??
- 191 macro_obj.formatter = self
- 192 return macro_obj.execute(name, args)
- 193 else:
- 194 return self.__insert_code(
- macro_obj = <MoinMoin.macro.Macro instance at 0xb7e97c6c>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xb7e97c6c>>
- name = u'Bibliography'
- args = u', label=yes'
/var/lib/python-support/python2.5/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xb7e97c6c>, macro_name=u'Bibliography', args=u', label=yes')
- 126 else:
- 127 raise ImportError("Cannot load macro %s" % macro_name)
- 128 return execute(self, args)
- 129
- 130 def _m_lang(self, text):
- execute = <function execute at 0x9c74aac>
- self = <MoinMoin.macro.Macro instance at 0xb7e97c6c>
- args = u', label=yes'
/home/kforge/knowledgeforge.net/var/project_data/econ/moin/95/data/plugin/macro/Bibliography.py in execute (macro=<MoinMoin.macro.Macro instance at 0xb7e97c6c>, args=u', label=yes')
- 489
- 490
- 491 def execute(macro, args):
- 492 bib = Bibliography(macro, args)
- 493 return bib.run()
- bib undefined
- global Bibliography = <class wikiconfig.plugin.macro.Bibliography.Bibliography at 0x9c759ec>
- macro = <MoinMoin.macro.Macro instance at 0xb7e97c6c>
- args = u', label=yes'
/home/kforge/knowledgeforge.net/var/project_data/econ/moin/95/data/plugin/macro/Bibliography.py in __init__ (self=<wikiconfig.plugin.macro.Bibliography.Bibliography instance at 0x9c52bec>, macro=<MoinMoin.macro.Macro instance at 0xb7e97c6c>, args=u', label=yes')
- 261 bib_args = ""
- 262 self.bib_page_name = wikiutil.AbsPageName(self.request,
- 263 self.this_page_name, bib_page_name.strip())
- 264
- 265 # get the rest of the (named) parameters
- self = <wikiconfig.plugin.macro.Bibliography.Bibliography instance at 0x9c52bec>
- self.this_page_name = u'RufusPollock'
- bib_page_name = u''
- bib_page_name.strip = <built-in method strip of unicode object at 0xb7f4b038>
TypeError
AbsPageName() takes exactly 2 arguments (3 given)
- args = ('AbsPageName() takes exactly 2 arguments (3 given)',)
- message = 'AbsPageName() takes exactly 2 arguments (3 given)'
System Details
- Date: Thu, 09 Sep 2010 01:16:54 +0000
- Platform: Linux us1.okfn.org 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.7.1 (release)