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.
/srv/moin_tw/moin-test/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)
- 1143 self.page.send_page(self, msg=msg)
- 1144 else:
- 1145 handler(self.page.page_name, self)
- 1146
- 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'
/srv/moin_tw/moin-test/MoinMoin/action/fckdialog.py in execute (pagename=u'ReimarBauer', request=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)
- 535 page_list(request)
- 536 elif dialog == "link":
- 537 link_dialog(request)
- 538 elif dialog == "attachment":
- 539 attachment_dialog(request)
- global link_dialog = <function link_dialog at 0xf7ae51ec>
- request = <MoinMoin.request.CGI.Request object at 0xf7a2794c>
/srv/moin_tw/moin-test/MoinMoin/action/fckdialog.py in link_dialog (request=<MoinMoin.request.CGI.Request object at 0xf7a2794c>)
- 247 action = scriptname
- 248 basepage = request.page.page_name.encode(config.charset)
- 249 request.emit_http_headers()
- 250 request.write('''
- 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>>
/srv/moin_tw/moin-test/MoinMoin/request/__init__.py in emit_http_headers (self=<MoinMoin.request.CGI.Request object at 0xf7a2794c>, more_headers=[])
- 1191 self.sent_headers = sent_headers + 1
- 1192 if sent_headers:
- 1193 raise HeadersAlreadySentException("emit_http_headers called multiple (%d) times! Headers: %r" % (sent_headers, headers))
- 1194 #else:
- 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.You are not allowed to attach a file to this page.