Description
If I do on a modem connection an Edit of a page and click Cancel before the page is loaded I got the error. -- ReimarBauer 2005-11-19 08:38:46
coercing to Unicode: need string or buffer, NoneType found
Steps to reproduce
Edit a large page on a slow connection and click cancel as soon as possible
Traceback
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. /org/moin_tw/moin-1.5/MoinMoin/request.py in run (self=<MoinMoin.request.RequestTwisted object>) 1006 from MoinMoin.wikiaction import getHandler 1007 handler = getHandler(self, action) 1008 handler(self.page.page_name, self) 1009 1010 # 5. Or redirect to another page handler = <function do_edit> self = <MoinMoin.request.RequestTwisted object> self.page = <MoinMoin.Page.Page instance> self.page.page_name = u'ParserMarket/Gallery2' /org/moin_tw/moin-1.5/MoinMoin/wikiaction.py in do_edit (pagename=u'ParserMarket/Gallery2', request=<MoinMoin.request.RequestTwisted object>) 566 # Edit was canceled 567 if request.form.has_key('button_cancel'): 568 pg.sendCancel(savetext, rev) 569 return 570 pg = <MoinMoin.PageEditor.PageEditor instance> pg.sendCancel = <bound method PageEditor.sendCancel of <MoinMoin.PageEditor.PageEditor instance>> savetext = None rev = 126 /org/moin_tw/moin-1.5/MoinMoin/PageEditor.py in sendCancel (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=None, rev=126) 432 """ 433 _ = self._ 434 self._make_backup(newtext) 435 self.lock.release() 436 self = <MoinMoin.PageEditor.PageEditor instance> self._make_backup = <bound method PageEditor._make_backup of <MoinMoin.PageEditor.PageEditor instance>> newtext = None /org/moin_tw/moin-1.5/MoinMoin/PageEditor.py in _make_backup (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=None, **kw={}) 668 intro += _('## backup of page "%(pagename)s" submitted %(date)s') % { 669 'pagename': pagename, 'date': date,} + u'\n' 670 backuppage._write_file(intro + newtext) 671 672 return backuppage.url(self.request) backuppage = <MoinMoin.PageEditor.PageEditor instance> backuppage._write_file = <bound method PageEditor._write_file of <MoinMoin.PageEditor.PageEditor instance>> intro = u'#acl ReimarBauer:read,write,delete All:\n\n' newtext = None TypeError coercing to Unicode: need string or buffer, NoneType found args = ('coercing to Unicode: need string or buffer, NoneType found',)
Details
This wiki
Workaround
Press Cancel only if you see the text
Discussion
Plan
- Priority:
- Assigned to:
- Status: fixed in ptch 225