You are not allowed to edit this page.

    KayvonTest

--> -->

TypeError

exceptions must be old-style classes or derived from BaseException, not str

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. /usr/lib/python2.6/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object>)

    1. 1205 self.page.send_page(self, msg=msg)
    2. 1206 else:
    3. 1207 handler(self.page.page_name, self)
    4. 1208
    5. 1209 # generate page footer (actions that do not want this footer use
    • handler = <function execute>
    • self = <MoinMoin.request.RequestModPy object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'KayvonTest'
  2. /usr/lib/python2.6/site-packages/MoinMoin/action/PackagePages.py in execute (pagename=u'KayvonTest', request=<MoinMoin.request.RequestModPy object>)

    1. 167 return Dialog(self.request, content=form)
    2. 168
    3. 169 def execute(pagename, request):
    4. 170 """ Glue code for actions """
    5. 171 PackagePages(pagename, request).render()
    • global PackagePages = <class MoinMoin.action.PackagePages.PackagePages>
    • pagename = u'KayvonTest'
    • request = <MoinMoin.request.RequestModPy object>
    • ).render undefined
  3. /usr/lib/python2.6/site-packages/MoinMoin/action/PackagePages.py in render (self=<MoinMoin.action.PackagePages.PackagePages instance>)

    1. 57 self.package()
    2. 58 except ActionError, e:
    3. 59 return self.page.send_page(self.request, msg=e.args[0])
    4. 60
    5. 61 def package(self):
    • self = <MoinMoin.action.PackagePages.PackagePages instance>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • self.request = <MoinMoin.request.RequestModPy object>
    • msg undefined
    • e = ActionError(u'You are not allowed to edit this page.',)
    • e.args = (u'You are not allowed to edit this page.',)
  4. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, msg=u'You are not allowed to edit this page.', **keywords={})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 1
  5. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'\nOnly KayvonTest1 can read/write this page\n', format_args='', do_cache=1, **kw={'start_line': 1})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestModPy object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 0x55f2d3eb8e40, file "KayvonTest", line 2>
  6. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0x55f2d3eb8e40, file "KayvonTest", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object ? at 0x55f2d3eb8e40, file "KayvonTest", line 2>
  7. /KayvonTest in ?

TypeError

exceptions must be old-style classes or derived from BaseException, not str

  • args = ('exceptions must be old-style classes or derived from BaseException, not str',)
  • message = 'exceptions must be old-style classes or derived from BaseException, not str'

System Details

  • Date: Thu, 18 Jul 2024 14:57:23 +0000
  • Platform: Linux graphics.stanford.edu 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
  • Python: Python 2.6.6 (/usr/bin/python)
  • MoinMoin: Release 1.5.8 (release)