View Single Post
Old 04-14-2015, 01:28 AM   #3
mirikbb
Member
mirikbb began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jan 2012
Device: Kindle
Quote:
Originally Posted by chaley View Post
It is very hard to answer you without more information about what you want to do with them.

To directly answer the question, use gui.db.custom_field_keys(include_composites=True) to get a list of keys (lookup names) of the custom columns in the current library.

There are many methods in gui.db.new_api (db/cache.py) to manipulate fields. Custom columns are just another example of fields.
I am newbie in python programming and trying to learn it a bit. I want to populate drop down menu with custom column list. Selected custom column will be proceeded after.
I will place maybe more general question, is there updated list/documentation of all methods usable in calibre plugin programming or I have to go through the cache.py as suggested?
mirikbb is offline   Reply With Quote