![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2013
Device: none
|
Plugin Dev - Examples/Resources
Hello,
This is my first attempt at trying to write a plugin. The existing documentation is good, but i am looking for two functions: 1. Add a new custom column during Initialize() 2. Being able to request that information and modify via an HTTP RPC. i do not expect a tutorial on that as a response, but if anybody knows any resources i can look at, or a plugin that already does that, and i can look at the code. thank you, -=- adamtg |
![]() |
![]() |
![]() |
#2 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,080
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
It looks like the Reading List plugin (https://www.mobileread.com/forums/sho...d.php?t=134856) does custom columns, you could see custom column code from there to see how to add/read them.
As for the HTTP RPC, I'm not aware of any plugin that listens and processes RPC events but you could probably look though calibre's code (Kovid or anyone more familiar with the calibre code could point you at the right place) to see how to best handle listening and responding to requests, or point out any reason why that may not be such a good idea. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,265
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look at smart_device/driver.py for an example of a server that listens for connections. Other than that there are no plugins that I know of that create servers, HTTP or otherwise.
calibre ships with cherrypy (which it uses for its content server) so you should be able to create a http server with that fairly easily. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
Help with plugin dev - get_resources() works funny | GaryJonston | Development | 2 | 12-09-2012 04:23 AM |
Help with plugin dev. | Buzzy | Development | 2 | 10-26-2012 03:22 PM |
Another plugin dev question | DiapDealer | Plugins | 2 | 12-11-2010 01:46 PM |
Epub plugin dev | DiapDealer | Plugins | 15 | 11-12-2010 09:36 AM |