Attachment 'msg_RefTest.html'

Download

--> -->

UnboundLocalError

local variable 'msg' referenced before assignment

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. /org/moin_tw/moin-1.5/MoinMoin/request.py in run (self=<MoinMoin.request.RequestTwisted object>)

    1. 1022 from MoinMoin.wikiaction import getHandler
    2. 1023 handler = getHandler(self, action)
    3. 1024 handler(self.page.page_name, self)
    4. 1025
    5. 1026 # 5. Or redirect to another page
    • handler = <function execute>
    • self = <MoinMoin.request.RequestTwisted object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'RefTest'
  2. /org/moin_tw/moin-1.5/MoinMoin/action/DeletePage.py in execute (pagename=u'RefTest', request=<MoinMoin.request.RequestTwisted object>)

    1. 44 comment = request.form.get('comment', [u''])[0]
    2. 45 comment = wikiutil.clean_comment(comment)
    3. 46 msg = page.deletePage(comment)
    4. 47
    5. 48 return page.send_page(request, msg=msg)
    • msg undefined
    • page = <MoinMoin.PageEditor.PageEditor instance>
    • page.deletePage = <bound method PageEditor.deletePage of <MoinMoin.PageEditor.PageEditor instance>>
    • comment = u''
  3. /org/moin_tw/moin-1.5/MoinMoin/PageEditor.py in deletePage (self=<MoinMoin.PageEditor.PageEditor instance>, comment=u'')

    1. 487 cache = caching.CacheEntry(self.request, arena, key)
    2. 488 cache.remove()
    3. 489 return msg
    4. 490
    5. 491 def _sendNotification(self, comment, emails, email_lang, revisions, trivial):
    • msg undefined

UnboundLocalError

local variable 'msg' referenced before assignment

  • args = ("local variable 'msg' referenced before assignment",)

System Details

  • Date: Tue, 17 Jan 2006 08:15:24 +0000
  • Platform: Linux thinkmo 2.6.14-thinkmo-1 #1 SMP Wed Nov 9 17:33:56 CET 2005 x86_64
  • Python: Python 2.4.2 (/usr/local/bin/python2.4)
  • MoinMoin: Release 1.5.0 (patch-375)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-01-17 08:20:13, 6.0 KB) [[attachment:msg_RefTest.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.