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