[Zim-wiki] zim can't delete anything
hello everyone,i have something about zim.I use archlinux and install zim by `pacman -S zim`.then run it.First ,i create a Notes and and write on it.today i delete this Note by `rm Notes folder` ,but when i restart zim ,this Notes still exists ,but have no content .so i delete by right- click->delete page,a dialog box jump out and said This is zim 0.56 Python version is sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) Gtk version is (2, 24, 10) Pygtk version is (2, 24, 0) Platform is posix Zim revision is: branch: pyzim-trunk revision: 533 jaap.karssenb...@gmail.com-20120402200722-gdcw1ef3icbs49qe date: 2012-04-02 22:07:22 +0200 === Traceback === File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 826, in _action_handler method(*arg) File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 1669, in delete_page update_links = self.preferences['GtkInterface']['remove_links_on_delete'] KeyError: 'remove_links_on_delete' who can help me ,please.. -- This message was sent from Launchpad by baicai (https://launchpad.net/~1527597756-p) to each member of the Zim team using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] zim can't delete anything
hello everyone,i have something about zim.I use archlinux and install zim by `pacman -S zim`.then run it.First ,i create a Notes and and write on it.today i delete this Note by `rm Notes folder` ,but when i restart zim ,this Notes still exists ,but have no content .so i delete by right- click->delete page,a dialog box jump out and said This is zim 0.56 Python version is sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) Gtk version is (2, 24, 10) Pygtk version is (2, 24, 0) Platform is posix Zim revision is: branch: pyzim-trunk revision: 533 jaap.karssenb...@gmail.com-20120402200722-gdcw1ef3icbs49qe date: 2012-04-02 22:07:22 +0200 === Traceback === File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 826, in _action_handler method(*arg) File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 1669, in delete_page update_links = self.preferences['GtkInterface']['remove_links_on_delete'] KeyError: 'remove_links_on_delete' who can help me ,pleas -- This message was sent from Launchpad by baicai (https://launchpad.net/~1527597756-p) to each member of the Zim team using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] zim can't delete anything
hello everyone,i have something about zim.I use archlinux and install zim by `pacman -S zim`.then run it.First ,i create a Notes and and write on it.today i delete this Note by `rm Notes folder` ,but when i restart zim ,this Notes still exists ,but have no content .so i delete by right- click->delete page,a dialog box jump out and said This is zim 0.56 Python version is sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) Gtk version is (2, 24, 10) Pygtk version is (2, 24, 0) Platform is posix Zim revision is: branch: pyzim-trunk revision: 533 jaap.karssenb...@gmail.com-20120402200722-gdcw1ef3icbs49qe date: 2012-04-02 22:07:22 +0200 === Traceback === File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 826, in _action_handler method(*arg) File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 1669, in delete_page update_links = self.preferences['GtkInterface']['remove_links_on_delete'] KeyError: 'remove_links_on_delete' who can help me ,pleas -- This message was sent from Launchpad by baicai (https://launchpad.net/~1527597756-p) to each member of the Zim team using the "Contact this team" link on the Zim team page (https://launchpad.net/~zim-wiki). For more information see https://help.launchpad.net/YourAccount/ContactingPeople ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] zim can't delete anything
Balcal, (Jaap, please correct this if I'm off base). When you manually delete the notes folder, the Zim cache (in .zim directory where your wiki was stored and/or the $Home/.cache/zim directory would not have been updated. So when you started Zim back up, Zim would not have reflected the deletion. Try deleting the contents of the .zim directory and/or the contents of the $HOME/.cache/zim directory and restart. After that, I'd suggest that, in general, you add/delete pages within Zim so that it can update the cache on-the-fly to reflect to mods. - Kurt On Wed, Apr 11, 2012 at 7:10 AM, baicai <1527597...@qq.com> wrote: > hello everyone,i have something about zim.I use archlinux and install > zim by `pacman -S zim`.then run it.First ,i create a Notes and and write > on it.today i delete this Note by `rm Notes folder` ,but when i restart > zim ,this Notes still exists ,but have no content .so i delete by right- > click->delete page,a dialog box jump out and said > > This is zim 0.56 > Python version is sys.version_info(major=2, minor=7, micro=2, > releaselevel='final', serial=0) > Gtk version is (2, 24, 10) > Pygtk version is (2, 24, 0) > Platform is posix > Zim revision is: > branch: pyzim-trunk > revision: 533 > jaap.karssenb...@gmail.com-20120402200722-gdcw1ef3icbs49qe > date: 2012-04-02 22:07:22 +0200 > > === Traceback === > File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line 826, > in _action_handler > method(*arg) > File "/usr/lib/python2.7/site-packages/zim/gui/__init__.py", line > 1669, in delete_page > update_links = > self.preferences['GtkInterface']['remove_links_on_delete'] > KeyError: 'remove_links_on_delete' > > who can help me ,pleas > -- > This message was sent from Launchpad by > baicai (https://launchpad.net/~1527597756-p) > to each member of the Zim team using the "Contact this team" link on the Zim > team page (https://launchpad.net/~zim-wiki). > For more information see > https://help.launchpad.net/YourAccount/ContactingPeople > > ___ > Mailing list: https://launchpad.net/~zim-wiki > Post to : zim-wiki@lists.launchpad.net > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] zim can't delete anything
On Wed, Apr 11, 2012 at 2:52 PM, kwood...@gmail.com wrote: > Balcal, > > (Jaap, please correct this if I'm off base). > > When you manually delete the notes folder, the Zim cache (in .zim > directory where your wiki was stored and/or the $Home/.cache/zim > directory would not have been updated. So when you started Zim back > up, Zim would not have reflected the deletion. But zim should detect it anyway. After restart of zim it checks the index against the folder structure and updates accordingly. A more likely reason is that other pages still link to the page, which would result in a "placeholder" for the page to still exist. > Try deleting the contents of the .zim directory and/or the contents of > the $HOME/.cache/zim directory and restart. This is rather drastic solution. If the index is out of sync you can rebuild it with the menu item in the Tools menu, or by running "zim --index". > After that, I'd suggest that, in general, you add/delete pages within > Zim so that it can update the cache on-the-fly to reflect to mods. In general yes, but in this case that will probably trigger the same bug shown in the traceback. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] zim can't delete anything
Thanks for straightening me out, Jaap - Kurt On Wed, Apr 11, 2012 at 9:24 AM, Jaap Karssenberg wrote: > On Wed, Apr 11, 2012 at 2:52 PM, kwood...@gmail.com > wrote: >> Balcal, >> >> (Jaap, please correct this if I'm off base). >> >> When you manually delete the notes folder, the Zim cache (in .zim >> directory where your wiki was stored and/or the $Home/.cache/zim >> directory would not have been updated. So when you started Zim back >> up, Zim would not have reflected the deletion. > > But zim should detect it anyway. After restart of zim it checks the > index against the folder structure and updates accordingly. > > A more likely reason is that other pages still link to the page, which > would result in a "placeholder" for the page to still exist. > >> Try deleting the contents of the .zim directory and/or the contents of >> the $HOME/.cache/zim directory and restart. > > This is rather drastic solution. If the index is out of sync you can > rebuild it with the menu item in the Tools menu, or by running "zim > --index". > >> After that, I'd suggest that, in general, you add/delete pages within >> Zim so that it can update the cache on-the-fly to reflect to mods. > > In general yes, but in this case that will probably trigger the same > bug shown in the traceback. > > Regards, > > Jaap -- Kurt Woodham kwood...@gmail.com (757) 351-2639 (H) (757) 864-6067 (W) (757) 635-6360 (C) ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp