View Single Post
Old 08-16-2018, 11:26 PM   #1
wrench100
Member
wrench100 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Mar 2018
Device: Kindle
Using wordpress_xmlrpc package in my plugin

I'm writing a plug-in to export book files directly from calibre into a Wordpress site and would like to use the python-zwordpress-xmlrpc package to do it, as it makes wordpress access very easy. (https://python-wordpress-xmlrpc.read....io/en/latest/)

This may be a newbie problem but I'm stuck on how to access the package's functions. I've placed the files in my plug-in folder. They're in a directory called wordpress_xmlrpc which is sitting inside the plugin folder (I'm currently just trying to test them with the interface_demo plugin). In my plug-in code I'm using the following include statements:

from calibre_plugins.interface_demo.wordpress_xmlrpc.ba se import *
from calibre_plugins.interface_demo.wordpress_xmlrpc.wo rdpress import *

But it's not finding the stuff. Help!

Thanks
wrench100 is offline   Reply With Quote