Attachment 'gui_16_dev_attachment_bug.html'

Download

--> -->

UnboundLocalError

local variable 'headers' 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. /srv/moin_tw/moin-test/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)

    1. 1143 self.page.send_page(self, msg=msg)
    2. 1144 else:
    3. 1145 handler(self.page.page_name, self)
    4. 1146
    5. 1147 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function execute at 0xf7ae53ac>
    • self = <MoinMoin.request.CGI.Request object at 0xf7a2794c>
    • self.page = <MoinMoin.Page.Page instance at 0xf79d97cc>
    • self.page.page_name = u'ReimarBauer'
  2. /srv/moin_tw/moin-test/MoinMoin/action/fckdialog.py in execute (pagename=u'ReimarBauer', request=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)

    1. 535 page_list(request)
    2. 536 elif dialog == "link":
    3. 537 link_dialog(request)
    4. 538 elif dialog == "attachment":
    5. 539 attachment_dialog(request)
    • global link_dialog = <function link_dialog at 0xf7ae51ec>
    • request = <MoinMoin.request.CGI.Request object at 0xf7a2794c>
  3. /srv/moin_tw/moin-test/MoinMoin/action/fckdialog.py in link_dialog (request=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)

    1. 247 action = scriptname
    2. 248 basepage = request.page.page_name.encode(config.charset)
    3. 249 request.emit_http_headers()
    4. 250 request.write('''
    5. 251 <!--
    • request = <MoinMoin.request.CGI.Request object at 0xf7a2794c>
    • request.emit_http_headers = <bound method Request.emit_http_headers of <MoinMoin.request.CGI.Request object at 0xf7a2794c>>
  4. /srv/moin_tw/moin-test/MoinMoin/request/__init__.py in emit_http_headers (self=<MoinMoin.request.CGI.Request object at 0xf7a2794c>, more_headers=[])

    1. 1191 self.sent_headers = sent_headers + 1
    2. 1192 if sent_headers:
    3. 1193 raise HeadersAlreadySentException("emit_http_headers called multiple (%d) times! Headers: %r" % (sent_headers, headers))
    4. 1194 #else:
    5. 1195 # self.log("Notice: emit_http_headers called first time. Headers: %r" % all_headers)
    • global HeadersAlreadySentException = <class 'MoinMoin.request.HeadersAlreadySentException'>
    • sent_headers = 1
    • headers undefined

UnboundLocalError

local variable 'headers' referenced before assignment

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

System Details

  • Date: Tue, 19 Dec 2006 21:45:48 +0000
  • Platform: Linux web.thinkmo.de 2.6.17-thinkmo-1 #1 SMP Sat Jul 29 17:36:42 CEST 2006 x86_64
  • Python: Python 2.5 (/usr/local/bin/python2.5)
  • MoinMoin: Release 1.6.0alpha ()

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-12-19 21:50:41, 7.4 KB) [[attachment:gui_16_dev_attachment_bug.html]]
 All files | Selected Files: delete move to page copy to page

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