Zim

Cannot get a file for the toplevel namespace on page delete

Bug #1195048 reported by shunjie lau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

Assuming root:foo:bar exists.
Create foo:bar link
Delete page generate the error

This is zim 0.60
Python version is sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
Gtk version is (2, 24, 19)
Pygtk version is (2, 24, 0)
Platform is posix
Zim revision is:
  branch: pyzim-trunk
  revision: 672 <email address hidden>
  date: 2013-04-30 19:27:20 +0200

Traceback
=========
  File "/usr/lib/python2.7/site-packages/zim/gui/init.py", line 819, in _action_handler
    method(*arg)
  File "/usr/lib/python2.7/site-packages/zim/gui/init.py", line 1700, in delete_page
    self.notebook.trash_page(path, update_links, callback)
  File "/usr/lib/python2.7/site-packages/zim/notebook.py", line 1704, in trash_page
    return self._delete_page(path, update_links, callback, trash=True)
  File "/usr/lib/python2.7/site-packages/zim/notebook.py", line 1715, in _delete_page
    page = self.get_page(path)
  File "/usr/lib/python2.7/site-packages/zim/notebook.py", line 1254, in get_page
    page = store.get_page(path)
  File "/usr/lib/python2.7/site-packages/zim/stores/files.py", line 73, in get_page
    file = self._get_file(path)
  File "/usr/lib/python2.7/site-packages/zim/stores/files.py", line 55, in _get_file
    assert path != self.namespace, 'Can not get a file for the toplevel namespace'
AssertionError: Can not get a file for the toplevel namespace

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Cannot reproduce - handling of relative link will be changed with next release

Changed in zim:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.