Attachment 'traceback.html'
Download--> -->
UnicodeDecodeError
'utf8' codec can't decode bytes in position 15-20: unsupported Unicode code range
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/moin-1.7/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)
- 1296 self.page.send_page()
- 1297 else:
- 1298 handler(self.page.page_name, self)
- 1299
- 1300 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function execute at 0xa477d0>
- self = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
- self.page = <MoinMoin.Page.Page object at 0xf3c450>
- self.page.page_name = u'Example'
/home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in execute (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)
- 523 handler = globals().get('_do_%s' % do[0])
- 524 if handler:
- 525 msg = handler(pagename, request)
- 526 else:
- 527 msg = _('Unsupported AttachFile sub-action: %s') % (wikiutil.escape(do[0]), )
- msg undefined
- handler = <function _do_unzip at 0xa47d70>
- pagename = u'Example'
- request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
/home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in _do_unzip (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>)
- 945 msg = _('The file %(filename)s is not a .zip file.') % {'filename': filename}
- 946
- 947 upload_form(pagename, request, msg=wikiutil.escape(msg))
- 948
- 949
- global upload_form = <function upload_form at 0xa478c0>
- pagename = u'Example'
- request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
- msg = u"Attachment 'Aufbruchsklima.zip' unzipped."
- global wikiutil = <module 'MoinMoin.wikiutil' from '/home/user/workspace/moin-1.7/MoinMoin/wikiutil.pyc'>
- wikiutil.escape = <function escape at 0x7c6d70>
/home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in upload_form (pagename=u'Example', request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, msg=u"Attachment 'Aufbruchsklima.zip' unzipped.")
- 541 request.setContentLanguage(request.lang)
- 542 request.theme.add_msg(msg, "dialog")
- 543 request.theme.send_title(_('Attachments for "%(pagename)s"') % {'pagename': pagename}, pagename=pagename)
- 544 request.write('<div id="content">\n') # start content div
- 545 send_uploadform(pagename, request)
- request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
- request.theme = <MoinMoin.theme.modern.Theme instance at 0xdcf830>
- request.theme.send_title = <bound method Theme.send_title of <MoinMoin.theme.modern.Theme instance at 0xdcf830>>
- _ = <function <lambda> at 0xf4acf8>
- pagename = u'Example'
/home/user/workspace/moin-1.7/MoinMoin/theme/__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance at 0xdcf830>, text=u'Attachments for "Example"', **keywords={'pagename': u'Example'})
- 1651 if pagename and request.user.may.read(pagename):
- 1652 from MoinMoin.action import AttachFile
- 1653 AttachFile.send_link_rel(request, pagename)
- 1654
- 1655 output.extend([
- AttachFile = <module 'MoinMoin.action.AttachFile' from '/home...rkspace/moin-1.7/MoinMoin/action/AttachFile.pyc'>
- AttachFile.send_link_rel = <function send_link_rel at 0xa47668>
- request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
- pagename = u'Example'
/home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in send_link_rel (request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, pagename=u'Example')
- 409
- 410 def send_link_rel(request, pagename):
- 411 files = _get_files(request, pagename)
- 412 for fname in files:
- 413 url = getAttachUrl(pagename, fname, request, do='view', escaped=1)
- files undefined
- global _get_files = <function _get_files at 0xa47488>
- request = <MoinMoin.request.request_standalone.Request object at 0xf3c4d0>
- pagename = u'Example'
/home/user/workspace/moin-1.7/MoinMoin/action/AttachFile.py in _get_files (request=<MoinMoin.request.request_standalone.Request object at 0xf3c4d0>, pagename=u'Example')
- 366 attach_dir = getAttachDir(request, pagename)
- 367 if os.path.isdir(attach_dir):
- 368 files = [fn.decode(config.charset) for fn in os.listdir(attach_dir)]
- 369 files.sort()
- 370 else:
- files undefined
- fn = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
- fn.decode = <built-in method decode of str object at 0xdd0198>
- global config = <module 'MoinMoin.config' from '/home/user/workspace/moin-1.7/MoinMoin/config/__init__.pyc'>
- config.charset = 'utf-8'
- global os = <module 'os' from '/usr/lib64/python2.5/os.pyc'>
- os.listdir = <built-in function listdir>
- attach_dir = '/home/user/workspace/moin-1.7/wiki/data/pages/Example/attachments'
/usr/lib64/python2.5/encodings/utf_8.py in decode (input='BF Onlinebrosch\xfcre Sym 2008.pdf', errors='strict')
- 14
- 15 def decode(input, errors='strict'):
- 16 return codecs.utf_8_decode(input, errors, True)
- 17
- 18 class IncrementalEncoder(codecs.IncrementalEncoder):
- global codecs = <module 'codecs' from '/usr/lib64/python2.5/codecs.pyc'>
- codecs.utf_8_decode = <built-in function utf_8_decode>
- input = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
- errors = 'strict'
- builtin True = True
UnicodeDecodeError
'utf8' codec can't decode bytes in position 15-20: unsupported Unicode code range
- args = ('utf8', 'BF Onlinebrosch\xfcre Sym 2008.pdf', 15, 21, 'unsupported Unicode code range')
- encoding = 'utf8'
- end = 21
- message = ''
- object = 'BF Onlinebrosch\xfcre Sym 2008.pdf'
- reason = 'unsupported Unicode code range'
- start = 15
System Details
- Date: Mon, 26 May 2008 08:02:34 +0000
- Platform: Linux linux 2.6.18.8-0.9-default #1 SMP Sun Feb 10 22:48:05 UTC 2008 x86_64
- Python: Python 2.5 (/usr/bin/python)
- MoinMoin: Release 1.7.0rc1 (release)
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.