Zim

Comment 2 for bug 506813

Revision history for this message
John Drinkwater (johndrinkwater) wrote :

I think there’s a bug related to current behaviour. If you move a page, then delete it, pyzim will try to return to the page’s location before the move and drop a traceback in debug mode. It also leaves the now-deleted page in the textview.

DEBUG: Opening dialog "Delete Page - Zim"
DEBUG: Dialog response OK
INFO: Remove file: /home/john/Notes/Code/Testing.txt
INFO: Remove file tree: /home/john/Notes/Code/Testing
DEBUG: Wrote /home/john/Notes/.zim/state.conf
INFO: Open page: <FileStorePage: Testing> (<HistoryRecord: Testing>)
DEBUG: Found template '_New' for <FileStorePage: Testing>
INFO: Loading template from: /home/john/code/zim/git-support/data/templates/wiki/_New.txt
Traceback (most recent call last):
  File "/home/john/code/zim/git-support/zim/gui/pageindex.py", line 278, in <lambda>
    lambda o, p, r: self.select_page(p, vivify=True) )
  File "/home/john/code/zim/git-support/zim/gui/pageindex.py", line 432, in select_page
    index.cleanup(self._vivivied)
  File "/home/john/code/zim/git-support/zim/index.py", line 775, in cleanup
    if not (path.hascontent or path.haschildren) \
  File "/home/john/code/zim/git-support/zim/index.py", line 130, in __getattr__
    raise AttributeError, 'This IndexPath does not contain row data'
AttributeError: This IndexPath does not contain row data
DEBUG: Closed dialog "Delete Page"