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.
/srv/moin/code/1.8/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 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'
/srv/moin/code/1.8/MoinMoin/action/AttachFile.py in execute (pagename=u'MarcelH\xe4fner', request=<MoinMoin.request.request_wsgi.Request object at 0xa9a0dac>)
- 511 handler = globals().get('_do_%s' % do[0])
- 512 if handler:
- 513 msg = handler(pagename, request)
- 514 else:
- 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>
/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>)
- 576
- 577 target = preprocess_filename(target)
- 578 target = wikiutil.clean_input(target)
- 579
- 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>
/srv/moin/code/1.8/MoinMoin/wikiutil.py in clean_input (text=None, max_len=201)
- 264 """
- 265 # we only have input fields with max 200 chars, but spammers send us more
- 266 length = len(text)
- 267 if length == 0 or length > max_len:
- 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.You are not allowed to attach a file to this page.