View Single Post
Old 02-01-2011, 04:28 PM   #1
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Removal of plugin not removing config store

It appears that when you remove a plugin it doesn't remove the configuration store information.

In my plugin I run plugin_store = JSONConfig('plugins/somename') and c = config_store().get(storename, storedefaults) along with c.get and c.set. Data saves and loads ok.

However, if I remove the plugin either by the GUI or cli, when I re-add my plugin and start it, the last values saved in the store are visible to the plugin. Because I stored some incorrect data one time, this caused some problems in plugin development. Although I was able to get around it by saving an empty data set to the store before continuing.

I expected the plugin removal to remove any stored information for the plugin. Is it leaving the information just in case, or is it a bug?

Is there a way to manually remove the store (in order to give instructions for a complete removal)?
meme is offline   Reply With Quote