Attachment 'traceback.html'

Download

--> -->

TypeError

object of type 'NoneType' has no len()

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/code/1.8/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function execute at 0xa54b64c>
    • self = <MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>
    • self.page = <MoinMoin.Page.Page object at 0xaac4dec>
    • self.page.page_name = u'MarcelH\xe4fner'
  2. /srv/moin/code/1.8/MoinMoin/action/AttachFile.py in execute (pagename=u'MarcelH\xe4fner', request=<MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>)

    1. 511 handler = globals().get('_do_%s' % do[0])
    2. 512 if handler:
    3. 513 msg = handler(pagename, request)
    4. 514 else:
    5. 515 msg = _('Unsupported AttachFile sub-action: %s') % (wikiutil.escape(do[0]), )
    • msg undefined
    • handler = <function _do_upload at 0xa54b72c>
    • pagename = u'MarcelH\xe4fner'
    • request = <MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>
  3. /srv/moin/code/1.8/MoinMoin/action/AttachFile.py in _do_upload (pagename=u'MarcelH\xe4fner', request=<MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>)

    1. 576
    2. 577 target = preprocess_filename(target)
    3. 578 target = wikiutil.clean_input(target)
    4. 579
    5. 580 if not target:
    • target = None
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/srv/moin/code/1.8/MoinMoin/wikiutil.py'>
    • wikiutil.clean_input = <function clean_input at 0xa59ba04>
  4. /srv/moin/code/1.8/MoinMoin/wikiutil.py in clean_input (text=None, max_len=201)

    1. 264 """
    2. 265 # we only have input fields with max 200 chars, but spammers send us more
    3. 266 length = len(text)
    4. 267 if length == 0 or length > max_len:
    5. 268 return u''
    • length undefined
    • builtin len = <built-in function len>
    • text = None

TypeError

object of type 'NoneType' has no len()

  • args = ("object of type 'NoneType' has no len()",)
  • message = "object of type 'NoneType' has no len()"

System Details

  • Date: Tue, 03 Mar 2009 06:04:43 +0000
  • Platform: Linux www.moinmo.in 2.6.26-1-xen-686 #1 SMP Sat Jan 10 22:52:47 UTC 2009 i686
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.2 (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] (2009-03-03 06:22:32, 7.1 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

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