Attachment 'bugreport.txt'

Download

   1 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
   2 
   3    1.
   4 
   5       D:\Python24\lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestCGI object>)
   6          1. 1135 from MoinMoin.wikiaction import getHandler
   7          2. 1136 handler = getHandler(self, action)
   8          3. 1137 handler(self.page.page_name, self)
   9          4. 1138
  10          5. 1139 # 5. Or redirect to another page
  11           * handler = <function execute>
  12           * self = <MoinMoin.request.RequestCGI object>
  13           * self.page = <MoinMoin.Page.Page instance>
  14           * self.page.page_name = u'DataWarehouse'
  15    2.
  16 
  17       d:\moin\mywiki\data\plugin\action\AttachFile.py in execute (pagename=u'DataWarehouse', request=<MoinMoin.request.RequestCGI object>)
  18          1. 458 if request.user.may.write(pagename):
  19          2. 459 if request.form.has_key('file'):
  20          3. 460 do_upload(pagename, request)
  21          4. 461 else:
  22          5. 462 # This might happen when trying to upload file names
  23           * global do_upload = <function do_upload>
  24           * pagename = u'DataWarehouse'
  25           * request = <MoinMoin.request.RequestCGI object>
  26    3.
  27 
  28       d:\moin\mywiki\data\plugin\action\AttachFile.py in do_upload (pagename=u'DataWarehouse', request=<MoinMoin.request.RequestCGI object>)
  29          1. 580
  30          2. 581 # return attachment list
  31          3. 582 upload_form(pagename, request, msg)
  32          4. 583
  33          5. 584
  34           * global upload_form = <function upload_form>
  35           * pagename = u'DataWarehouse'
  36           * request = <MoinMoin.request.RequestCGI object>
  37           * msg = u"Dateianhang 'fr\xfchling.jpg' (urspr\xfcnglicher Name 'fr\xfchling.jpg') mit 97389 Bytes gesichert."
  38    4.
  39 
  40       d:\moin\mywiki\data\plugin\action\AttachFile.py in upload_form (pagename=u'DataWarehouse', request=<MoinMoin.request.RequestCGI object>, msg=u"Dateianhang 'fr\xfchling.jpg' (urspr\xfcnglicher Name 'fr\xfchling.jpg') mit 97389 Bytes gesichert.")
  41          1. 503 # Use user interface language for this generated page
  42          2. 504 request.setContentLanguage(request.lang)
  43          3. 505 wikiutil.send_title(request, _('Attachments for "%(pagename)s"') % {'pagename': pagename}, pagename=pagename, msg=msg)
  44          4. 506 request.write('<div id="content">\n') # start content div
  45          5. 507 send_uploadform(pagename, request)
  46           * global wikiutil = <module 'MoinMoin.wikiutil' from 'D:\Python24\lib\site-packages\MoinMoin\wikiutil.pyc'>
  47           * wikiutil.send_title = <function send_title>
  48           * request = <MoinMoin.request.RequestCGI object>
  49           * _ = <function <lambda>>
  50           * pagename = u'DataWarehouse'
  51           * msg = u"Dateianhang 'fr\xfchling.jpg' (urspr\xfcnglicher Name 'fr\xfchling.jpg') mit 97389 Bytes gesichert."
  52    5.
  53 
  54       d:\python24\Lib\site-packages\MoinMoin\wikiutil.py in send_title (request=<MoinMoin.request.RequestCGI object>, text=u'Dateianh\xe4nge f\xfcr "DataWarehouse"', **keywords={'msg': u"Dateianhang 'fr\xfchling.jpg' (urspr\xfcnglicher Name 'fr\xfchling.jpg') mit 97389 Bytes gesichert.", 'pagename': u'DataWarehouse'})
  55          1. 1357 if pagename:
  56          2. 1358 from MoinMoin.action import AttachFile
  57          3. 1359 AttachFile.send_link_rel(request, pagename)
  58          4. 1360
  59          5. 1361 output.extend([
  60           * AttachFile = <module 'MoinMoin.action.AttachFile' from 'D:\Py...ib\site-packages\MoinMoin\action\AttachFile.pyc'>
  61           * AttachFile.send_link_rel = <function send_link_rel>
  62           * request = <MoinMoin.request.RequestCGI object>
  63           * pagename = u'DataWarehouse'
  64    6.
  65 
  66       d:\python24\Lib\site-packages\MoinMoin\action\AttachFile.py in send_link_rel (request=<MoinMoin.request.RequestCGI object>, pagename=u'DataWarehouse')
  67          1. 323
  68          2. 324 def send_link_rel(request, pagename):
  69          3. 325 files = _get_files(request, pagename)
  70          4. 326 if len(files) > 0 and not htdocs_access(request):
  71          5. 327 scriptName = request.getScriptname()
  72           * files undefined
  73           * global _get_files = <function _get_files>
  74           * request = <MoinMoin.request.RequestCGI object>
  75           * pagename = u'DataWarehouse'
  76    7.
  77 
  78       d:\python24\Lib\site-packages\MoinMoin\action\AttachFile.py in _get_files (request=<MoinMoin.request.RequestCGI object>, pagename=u'DataWarehouse')
  79          1. 284 attach_dir = getAttachDir(request, pagename)
  80          2. 285 if os.path.isdir(attach_dir):
  81          3. 286 files = map(lambda a: a.decode(config.charset), os.listdir(attach_dir))
  82          4. 287 files.sort()
  83          5. 288 return files
  84           * files undefined
  85           * builtin map = <built-in function map>
  86           * a undefined
  87           * global config = <module 'MoinMoin.config' from 'D:\Python24\lib\site-packages\MoinMoin\config.pyc'>
  88           * config.charset = 'utf-8'
  89           * global os = <module 'os' from 'D:\Python24\lib\os.pyc'>
  90           * os.listdir = <built-in function listdir>
  91           * attach_dir = rud:\moin\mywiki\data\pages\DataWarehouse\attachmentsu
  92    8.
  93 
  94       d:\python24\Lib\site-packages\MoinMoin\action\AttachFile.py in (a=u'fr\xc3\xbchling.jpg')
  95          1. 284 attach_dir = getAttachDir(request, pagename)
  96          2. 285 if os.path.isdir(attach_dir):
  97          3. 286 files = map(lambda a: a.decode(config.charset), os.listdir(attach_dir))
  98          4. 287 files.sort()
  99          5. 288 return files
 100           * files undefined
 101           * builtin map = <built-in function map>
 102           * a = u'fr\xc3\xbchling.jpg'
 103           * a.decode = <built-in method decode of unicode object>
 104           * global config = <module 'MoinMoin.config' from 'D:\Python24\lib\site-packages\MoinMoin\config.pyc'>
 105           * config.charset = 'utf-8'
 106           * global os = <module 'os' from 'D:\Python24\lib\os.pyc'>
 107           * os.listdir = <built-in function listdir>
 108           * attach_dir undefined
 109    9.
 110 
 111       D:\Python24\lib\encodings\utf_8.py in decode (input=u'fr\xc3\xbchling.jpg', errors='strict')
 112          1. 14
 113          2. 15 def decode(input, errors='strict'):
 114          3. 16 return codecs.utf_8_decode(input, errors, True)
 115          4. 17
 116          5. 18 class StreamWriter(codecs.StreamWriter):
 117           * global codecs = <module 'codecs' from 'D:\Python24\lib\codecs.pyc'>
 118           * codecs.utf_8_decode = <built-in function utf_8_decode>
 119           * input = u'fr\xc3\xbchling.jpg'
 120           * errors = 'strict'
 121           * builtin True = True
 122 
 123 UnicodeEncodeError
 124 
 125 'ascii' codec can't encode characters in position 2-3: ordinal not in range(128)
 126 
 127     * args = ('ascii', u'fr\xc3\xbchling.jpg', 2, 4, 'ordinal not in range(128)')
 128     * encoding = 'ascii'
 129     * end = 4
 130     * object = u'fr\xc3\xbchling.jpg'
 131     * reason = 'ordinal not in range(128)'
 132     * start = 2
 133 
 134 System Details
 135 
 136     * Date: Sat, 17 Jun 2006 12:46:38 +0000
 137     * Platform: win32 (nt)
 138     * Python: Python 2.4.3c1 (D:\Python24\python.exe)
 139     * MoinMoin: Release 1.5.3 (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.
  • [get | view] (2006-06-17 12:54:45, 7.0 KB) [[attachment:bugreport.txt]]
  • [get | view] (2005-07-23 15:15:15, 0.0 KB) [[attachment:urlfile_tämp]]
  • [get | view] (2005-07-23 15:17:11, 0.0 KB) [[attachment:ärger.txt]]
 All files | Selected Files: delete move to page copy to page

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