A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py
in run
(self=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 1304 self.page.send_page()
- 1305 else:
- 1306 handler(self.page.page_name, self)
- 1307
- 1308 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler
= <function execute at 0x29db42cc>
- self
= <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
- self.page
= <MoinMoin.Page.Page object at 0x2a317a2c>
- self.page.page_name
= u'qmail'
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py
in execute
(pagename=u'qmail', request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 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 0x29db43ac>
- pagename
= u'qmail'
- request
= <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py
in _do_upload
(pagename=u'qmail', request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>)
- 590 # add the attachment
- 591 try:
- 592 target, bytes = add_attachment(request, pagename, target, filecontent, overwrite=overwrite)
- 593 msg = _("Attachment '%(target)s' (remote name '%(filename)s')"
- 594 " with %(bytes)d bytes saved.") % {
- target
= u'spamcontrol-2.3.17.tgz'
- bytes undefined
- global
add_attachment
= <function add_attachment at 0x29db409c>
- request
= <MoinMoin.request.request_modpython.Request object at 0x2a31738c>
- pagename
= u'qmail'
- filecontent
= <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- overwrite
= 0
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py
in add_attachment
(request=<MoinMoin.request.request_modpython.Request object at 0x2a31738c>, pagename=u'qmail', target=u'spamcontrol-2.3.17.tgz', filecontent=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, overwrite=0)
- 208 stream = open(fpath, 'wb')
- 209 try:
- 210 _write_stream(filecontent, stream)
- 211 finally:
- 212 stream.close()
- global
_write_stream
= <function _write_stream at 0x29db4064>
- filecontent
= <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- stream
= <closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>
/usr/local/lib/python2.5/site-packages/MoinMoin/action/AttachFile.py
in _write_stream
(content=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, stream=<closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>, bufsize=8192)
- 175 if hasattr(content, 'read'): # looks file-like
- 176 import shutil
- 177 shutil.copyfileobj(content, stream, bufsize)
- 178 elif isinstance(content, str):
- 179 stream.write(content)
- shutil
= <module 'shutil' from '/usr/local/lib/python2.5/shutil.pyc'>
- shutil.copyfileobj
= <function copyfileobj at 0x29b75ed4>
- content
= <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- stream
= <closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>
- bufsize
= 8192
/usr/local/lib/python2.5/shutil.py
in copyfileobj
(fsrc=<closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>, fdst=<closed file '/usr/local/www/wiki/data/pages/qma...spamcontrol-2.3.17.tgz', mode 'wb' at 0x2a30c5c0>, length=8192)
- 19 """copy data from file-like object fsrc to file-like object fdst"""
- 20 while 1:
- 21 buf = fsrc.read(length)
- 22 if not buf:
- 23 break
- buf undefined
- fsrc
= <closed file '<fdopen>', mode 'w+b' at 0x2a30cc38>
- fsrc.read
= <built-in method read of file object at 0x2a30cc38>
- length
= 8192