Quote:
Originally Posted by Majutsushi
I just had an idea: since you can write custom modules for the ActionChains plugin in Python, it should be possible to write a module that calls into the KoboUtilities plugin so that it gives you a database connection, and then the module can use that connection to run any query it wants. Currently the relevant method would be "calibre_plugins.koboutilities.action.KoboUtilitie sAction.device_database_connection()". You need the running instance of that action though, and I'm not sure how to get access to that from a module. That's a question for people who are more familiar with that plugin.
Note that the above method will probably move and/or change a bit as part of my current refactoring, but there should still be a way to access it once I'm done.
|
This sounds like a bad idea. Think about it for a month or so.