Moving a page with child pages glitched
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
New
|
Undecided
|
Unassigned |
Bug Description
I tried to move a page with a mildly complex child tree to another section:
Resources
->Articles
->->Book Reviews
->->->The Red Queen
->->->->NY Times
->->->->The Guardian
->Books
->->The Red Queen
etc for a few dozen books
I tried to move the entire Articles page to
ToDo List
->Learning
->->Further Reading
->->->Articles
since I had read the books in depth but not the reviews. At this point, I'm just compiling them.
When I input the Move Page command, it ran smoothly for what seemed like most of the transfer, then popped an error message saying it couldn't find one of the files, and I had to cancel the action. It looks like all the files were transferred, though it's an extensive collection and I'm not certain I've checked them all.
However, the main bug is that the links to the child pages were not updated. For instance, the links to the reviews of The Red Queen on the Red Queen book page still point to the old location, and I'm needing to go update every link on every page by hand.
Is it not part of the program to update links to child pages, or was this a glitch?
Thank you,
Laecy
EDIT:
Here's the bug report
This is zim 0.65
Platform: nt
Locale: en_US cp1252
FS encoding: mbcs
Python: (2, 7, 11, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
branch: 065
revision: 805 <email address hidden>
date: 2015-11-01 15:42:45 +0100
======= Traceback =======
File "zim\gui\
File "zim\gui\
File "zim\notebook.pyo", line 1767, in trash_page
File "zim\notebook.pyo", line 1808, in _delete_page
File "zim\notebook.pyo", line 1434, in store_page
File "zim\stores\
File "zim\stores\
File "zim\stores\
AssertionError: BUG: Can not store a page without content
Yes, links to child pages should be updates as well, however the error probably happened before this was finished resulting in an "in between" state.
This part of the code should be much more robust with the new 0.67 version (rc2 is released, final release next week).
If you want, I can try to come up with a "repair" script to automatically update the links.
-- Jaap