Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 05-07-2013, 03:44 PM   #1
adamtg
Junior Member
adamtg began at the beginning.
 
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
adamtg is offline   Reply With Quote
Old 05-07-2013, 08:30 PM   #2
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,061
Karma: 2178845
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.
jgoguen is offline   Reply With Quote
Advert
Old 05-07-2013, 11:23 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,851
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:19 AM.


MobileRead.com is a privately owned, operated and funded community.