Zim

Comment 15 for bug 416859

Revision history for this message
smu (smu) wrote : Re: [Bug 416859] Re: Files without links should be removed

Will look into this within the next days.

On Tue, Jan 25, 2011 at 09:23:08PM -0000, Jaap Karssenberg wrote:
> Was about to merge this patch but encountered an error when opening my
> debug notebook:
>
> Traceback (most recent call last):
> File "/home/jaap/code/pyzim-trunk/zim/gui/__init__.py", line 594, in _action_handler
> method(*arg)
> File "/home/jaap/code/pyzim-trunk/zim/gui/__init__.py", line 1211, in clean_notebook
> CleanNotebookDialog(self).run()
> File "/home/jaap/code/pyzim-trunk/zim/gui/cleannotebook.py", line 184, in __init__
> self.treeview = OrphanedFilesTreeView(ui)
> File "/home/jaap/code/pyzim-trunk/zim/gui/cleannotebook.py", line 115, in __init__
> self.orphaned_files = get_orphaned_files(ui.notebook)
> File "/home/jaap/code/pyzim-trunk/zim/gui/cleannotebook.py", line 83, in get_orphaned_files
> if not shortfile in linked_files[pagename]:
> KeyError: u'Album'
>
> Would have debugged it myself, but too late on the evening and will not
> have much time for code until the end of the week.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/416859
>
> Title:
> Files without links should be removed
>
> Status in Zim desktop wiki:
> In Progress
>
> Bug description:
> In Zim 0.27 files that are attached stay there. It would be nice that
> if all links to those files are gone, the file would be automatically
> removed or transferred into some kind of wastebin thingy.
>
>
>