Attachment 'WikiSandBox.html'
Download --> -->
UnboundLocalError
local variable 'mimestr' 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.
/home/user/workspace/1.8-storage-cdenter/MoinMoin/request/__init__.py
in run
(self=<MoinMoin.request.request_standalone.Request object at 0x13f0ad0>)
- 1302 self.page.send_page()
- 1303 else:
- 1304 handler(self.page.page_name, self)
- 1305
- 1306 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler
= <function execute at 0xe5d7d0>
- self
= <MoinMoin.request.request_standalone.Request object at 0x13f0ad0>
- self.page
= <MoinMoin.Page.Page object at 0x1815e10>
- self.page.page_name
= u'WikiSandBox'
/home/user/workspace/1.8-storage-cdenter/MoinMoin/action/AttachFile.py
in execute
(pagename=u'WikiSandBox', request=<MoinMoin.request.request_standalone.Request object at 0x13f0ad0>)
- 547 if filename:
- 548 filename = wikiutil.taintfilename(filename[0])
- 549 msg = handler(pagename, request, filename=filename)
- 550 else:
- 551 msg = _('Unsupported AttachFile sub-action: %s') % (wikiutil.escape(do[0]), )
- msg undefined
- handler
= <function _do_get at 0xe5dc80>
- pagename
= u'WikiSandBox'
- request
= <MoinMoin.request.request_standalone.Request object at 0x13f0ad0>
- filename
= u'mytest.png'
/home/user/workspace/1.8-storage-cdenter/MoinMoin/action/AttachFile.py
in _do_get
(pagename=u'WikiSandBox',
request=<MoinMoin.request.request_standalone.Request object at
0x13f0ad0>, filename=u'mytest.png')
- 895 request.emit_http_headers(["Status: 304 Not modified"])
- 896 else:
- 897 mt = wikiutil.MimeType(mimestr=mimestr)
- 898 content_type = mt.content_type()
- 899 mime_type = mt.mime_type()
- mt undefined
- global
wikiutil
= <module 'MoinMoin.wikiutil' from '/home/user/workspace/1.8-storage-cdenter/MoinMoin/wikiutil.pyc'>
- wikiutil.MimeType
= <class 'MoinMoin.wikiutil.MimeType'>
- mimestr undefined
UnboundLocalError
local variable 'mimestr' referenced before assignment
- args = ("local variable 'mimestr' referenced before assignment",)
- message = "local variable 'mimestr' referenced before assignment"
System Details
- Date: Sun, 17 Aug 2008 22:05:25 +0000
- Platform: Linux linux 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.8.0 (alpha)
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.