mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
...
This commit is contained in:
parent
3695c35229
commit
89ada80103
@ -27,6 +27,12 @@ conversion_data = None
|
|||||||
conversion_data_load_status = {'loading':True, 'ok':False, 'error_html':None, 'current_fetch': None}
|
conversion_data_load_status = {'loading':True, 'ok':False, 'error_html':None, 'current_fetch': None}
|
||||||
|
|
||||||
|
|
||||||
|
def create_convert_book(container):
|
||||||
|
conversion_data.container_id = container.getAttribute('id')
|
||||||
|
|
||||||
|
|
||||||
|
# Initialization {{{
|
||||||
|
|
||||||
def on_data_loaded(end_type, xhr, ev):
|
def on_data_loaded(end_type, xhr, ev):
|
||||||
nonlocal conversion_data
|
nonlocal conversion_data
|
||||||
conversion_data_load_status.current_fetch = None
|
conversion_data_load_status.current_fetch = None
|
||||||
@ -73,7 +79,7 @@ def check_for_data_loaded():
|
|||||||
report_a_load_failure(
|
report_a_load_failure(
|
||||||
container, _('Failed to load conversion data from calibre, with error:'),
|
container, _('Failed to load conversion data from calibre, with error:'),
|
||||||
conversion_data_load_status.error_html)
|
conversion_data_load_status.error_html)
|
||||||
# create_convert_book(container)
|
create_convert_book(container)
|
||||||
|
|
||||||
|
|
||||||
def init(container_id):
|
def init(container_id):
|
||||||
@ -87,3 +93,4 @@ def init(container_id):
|
|||||||
|
|
||||||
|
|
||||||
set_panel_handler('convert_book', init)
|
set_panel_handler('convert_book', init)
|
||||||
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user