Need information on the calibre object model
Bug #771992 reported by
David Nemeskey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hey,
I have been using Calibre for a few days now, and although I checked the homepage and googled around a bit, I could not find information on the calibre object model. More specifically, there is only a sentence about the parameters formatter, kwargs, mi and locals passed to the template functions, and that's not really enough to use them.
For example, if I would like to extract the number of books associated with a certain author, I am stuck because such information is not available in the manual.
So please, extend the manual with information on calibre's essentials, the meaning of the parameters, etc; and even a few examples would not hurt.
Related branches
lp:~cbhaley/calibre/calibre_dev
- Kovid Goyal: Pending requested
-
Diff: 17 lines (+5/-2)1 file modifiedsrc/calibre/library/caches.py (+5/-2)
To post a comment you must log in.
Are you referring to the template functions definition preference? If so, that box has access to the source of all the built-in template functions. It is hard to imagine better examples.
As for the "object model", the best documentation available is the calibre source.
FYI: template functions operate on a book-by-book basis. General queries are not possible. The only way to do the query you described is to write SQL directly against the database.