FrankNiessink

--> -->

TypeError

__init__() takes exactly 3 arguments (2 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.

  1. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_fcgi.Request object at 0x973232c>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x8b9817c>
    • self = <MoinMoin.request.request_fcgi.Request object at 0x973232c>
    • self.page = <MoinMoin.Page.Page object at 0x973236c>
    • self.page.page_name = u'FrankNiessink'
  2. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/action/__init__.py in do_show (pagename=u'FrankNiessink', request=<MoinMoin.request.request_fcgi.Request object at 0x973232c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x973256c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x973260c>, 'format': u'wiki', 'formatargs': u'', 'language': 'en', 'lines': 2}
  4. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x973256c>, request=<MoinMoin.request.request_fcgi.Request object at 0x973232c>, body=u'== FrankNiessink ==\n\n\n<<SortBy(PageWithTable, 1, 1, alpha)>>\n\n----\nCategoryHomepage\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 2})

    1. 1287 try:
    2. 1288 code = self.loadCache(request)
    3. 1289 self.execute(request, parser, code)
    4. 1290 except Exception, e:
    5. 1291 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object at 0x973256c>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x973256c>>
    • request = <MoinMoin.request.request_fcgi.Request object at 0x973232c>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x97329cc>
    • code = <code object <module> at 0x96e92f0, file "FrankNiessink", line 2>
  5. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x973256c>, request=<MoinMoin.request.request_fcgi.Request object at 0x973232c>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x97329cc>, code=<code object <module> at 0x96e92f0, file "FrankNiessink", line 2>)

    1. 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1319 try:
    3. 1320 exec code
    4. 1321 except "CacheNeedsUpdate": # convert the exception
    5. 1322 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0x96e92f0, file "FrankNiessink", line 2>
  6. /home/robind/domains/wiki.wxpython.org/htdocs/FrankNiessink in ()

  7. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x97326ec>, macro_obj=<MoinMoin.macro.Macro instance at 0x973296c>, name=u'SortBy', args=u'PageWithTable, 1, 1, alpha', markup=u'<<SortBy(PageWithTable, 1, 1, alpha)>>')

    1. 308 # call the macro
    2. 309 try:
    3. 310 return macro_obj.execute(name, args)
    4. 311 except ImportError, err:
    5. 312 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0x973296c>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x973296c>>
    • name = u'SortBy'
    • args = u'PageWithTable, 1, 1, alpha'
  8. /home/robind/domains/wiki.wxpython.org/htdocs/lib/python/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x973296c>, macro_name=u'SortBy', args=u'PageWithTable, 1, 1, alpha')

    1. 126 else:
    2. 127 raise ImportError("Cannot load macro %s" % macro_name)
    3. 128 return execute(self, args)
    4. 129
    5. 130 def _m_lang(self, text):
    • execute = <function execute at 0x97186bc>
    • self = <MoinMoin.macro.Macro instance at 0x973296c>
    • args = u'PageWithTable, 1, 1, alpha'
  9. /home/robind/domains/wiki.wxpython.org/htdocs/wxPyWiki/data/plugin/macro/SortBy.py in execute (macro=<MoinMoin.macro.Macro instance at 0x973296c>, args=u'PageWithTable, 1, 1, alpha')

    1. 423 """
    2. 424 try:
    3. 425 sort_page, table, num_headers, sort_list = process_args(args)
    4. 426 for sort_column, sort_type, reverse in sort_list:
    5. 427 sort_table(table, num_headers, sort_column, sort_type, reverse)
    • sort_page undefined
    • table undefined
    • num_headers undefined
    • sort_list undefined
    • global process_args = <function process_args at 0x9718614>
    • args = u'PageWithTable, 1, 1, alpha'
  10. /home/robind/domains/wiki.wxpython.org/htdocs/wxPyWiki/data/plugin/macro/SortBy.py in process_args (args=u'PageWithTable, 1, 1, alpha')

    1. 336 else: reverse = 0
    2. 337 sort_list.append((sort_column, sort_type, reverse)) # Append a 3-tuple
    3. 338 sort_page = Page(table_page)
    4. 339 try: table_rows = read_table(sort_page._text_filename())
    5. 340 except IOError:
    • sort_page undefined
    • global Page = <class 'MoinMoin.Page.Page'>
    • table_page = u'PageWithTable'

TypeError

__init__() takes exactly 3 arguments (2 given)

  • args = ('__init__() takes exactly 3 arguments (2 given)',)
  • message = '__init__() takes exactly 3 arguments (2 given)'

System Details

  • Date: Thu, 17 May 2012 03:12:20 +0000
  • Platform: Linux riobu.com 2.6.18-238.12.1.el5.028stab091.1 #1 SMP Wed Jun 1 13:20:25 MSD 2011 i686
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.4 (release)