10-15-2022, 05:36 PM | #61 | |
Grand Sorcerer
Posts: 11,849
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
10-16-2022, 10:39 AM | #62 | |
Grand Sorcerer
Posts: 11,849
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
10-16-2022, 12:10 PM | #63 |
Chalut o/
Posts: 411
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
Well, I think my introspection system is stable.
Not sure about my English for the doc. Go for the pull request. Also @capink, my system is in fully dynamic and integrates ALL the functions currently loaded in the editor, including the ones specially added by your plugin. At less, as long as you are in a template editor launched and managed by Action Chaine. I was the first one surprised and particularly happy of this success. Edit: Merged in calibre source. Last edited by un_pogaz; 10-17-2022 at 11:02 AM. |
10-17-2022, 11:10 AM | #64 | |
Wizard
Posts: 1,128
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
It is working as expected. Thanks
Quote:
|
|
10-17-2022, 11:12 AM | #65 |
Grand Sorcerer
Posts: 11,849
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@un_pogaz: I am going through formatter.py and the docs, cleaning up comments and messages. Please don't make changes until I am done or we will have a mess of conflicts. Thanks
|
10-17-2022, 12:25 PM | #66 |
Grand Sorcerer
Posts: 11,849
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
10-24-2022, 12:34 PM | #67 |
Grand Sorcerer
Posts: 11,849
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I added setting breakpoints in python templates to the template tester. When a breakpoint is hit a dialog opens showing the local variables in the current frame. Breakpoints are on source lines and are triggered just before that line executes. They work for the entire template including helper functions.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python functions in database and calibre 5 | Terisa de morgan | Calibre | 7 | 09-27-2020 02:52 AM |
A little help with template functions in a composite column, please! | mopkin | Library Management | 2 | 11-05-2019 11:07 PM |
Using built-in template functions in a custom template function | ilovejedd | Library Management | 4 | 01-28-2018 12:20 PM |
Rules, templates, and functions for column coloring and composed icons | readin | Library Management | 7 | 08-11-2016 04:41 PM |
template: if one of the tag is something... maybe contains or in_list functions | fxp33 | Calibre | 4 | 07-19-2014 05:18 AM |