Zim

Exception with attachment browser when switching the notebook

Bug #664556 reported by smu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Undecided
Unassigned
zim (Fedora)
Fix Released
Medium

Bug Description

When I switch to another notebook with the new attachment browser enabled zim throws an exception:

INFO: This is zim 0.48
DEBUG: Python version is (2, 6, 5, 'final', 0)
DEBUG: Platform is posix
DEBUG: No bzr version-info found
DEBUG: Running from a source dir: /usr/src/zim
DEBUG: Set XDG_DATA_HOME to /home/smu/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/smu/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-openbox-gnome>, <Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/smu/.cache
DEBUG: Running command: gui
DEBUG: Loading /home/smu/Dropbox/zim/Notes/notebook.zim
DEBUG: Cache dir: /home/smu/.cache/zim/notebook-home_smu_Dropbox_zim_Notes
DEBUG: Index database file: /home/smu/.cache/zim/notebook-home_smu_Dropbox_zim_Notes/index.db
INFO: Opening default notebook
DEBUG: Loading /home/smu/.config/zim/preferences.conf
DEBUG: Gtk version is (2, 20, 1)
DEBUG: Pygtk version is (2, 17, 0)
...
INFO: Index update done
DEBUG: Loading /home/smu/Dropbox/zim/Notes/notebook.zim
DEBUG: Loading /home/smu/Dropbox/zim/Statistics/notebook.zim
INFO: Spawning: ['/usr/src/zim/zim.py', 'file:///home/smu/Dropbox/zim/Statistics', '--no-daemon'] (cwd: None)
DEBUG: Process started with PID: 26397
Traceback (most recent call last):
  File "/usr/src/zim/zim/plugins/attachmentbrowser.py", line 677, in on_open_page
      self.set_current_folder(str(self.plugin.ui.notebook.get_attachments_dir(page)+os.sep))
  File "/usr/src/zim/zim/plugins/attachmentbrowser.py", line 604, in set_current_folder
      if (self.plugin.uistate['active']):
KeyError: 'active'

zim rev 316

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

Fixed in refactoring branch, will sync with trunk soonish

Changed in zim:
status: New → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in zim 0.50

Changed in zim:
status: Fix Committed → Fix Released
Changed in zim (Fedora):
importance: Unknown → Medium
status: Unknown → Fix Released
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.