refactoring.

This commit is contained in:
St.Huang 2018-07-13 11:31:12 +08:00
parent b6b26108c7
commit 81cb09883e
2 changed files with 11 additions and 3 deletions

View File

@ -25,6 +25,9 @@ from PyQt4 import QtCore, QtGui
from .lang import _ from .lang import _
__all__ = ['INFO_TEMPLATE', 'ProgressWindow']
INFO_TEMPLATE = u''.join([ INFO_TEMPLATE = u''.join([
_('QUERIED') + u'<br>' + 45 * u'-' + u'<br>', _('QUERIED') + u'<br>' + 45 * u'-' + u'<br>',
_('SUCCESS') + u' {} ' + _('WORDS') + u'<br>', _('SUCCESS') + u' {} ' + _('WORDS') + u'<br>',

View File

@ -19,10 +19,7 @@
from collections import defaultdict from collections import defaultdict
import os import os
import re
import shutil import shutil
import sys
import time
import unicodedata import unicodedata
from aqt import mw from aqt import mw
@ -38,6 +35,14 @@ from .service.base import LocalService
from .utils import Empty, MapDict, Queue, wrap_css from .utils import Empty, MapDict, Queue, wrap_css
__all__ = ['QueryThread', 'QueryWorkerManager', 'InvalidWordException',
'query_from_browser', 'query_from_editor_all_fields',
'query_all', 'update_note_fields', 'update_note_field',
'promot_choose_css', 'add_to_tmpl', 'strip_combining',
'query_all_flds', 'inspect_note'
]
def inspect_note(note): def inspect_note(note):
""" """
inspect the note, and get necessary input parameters inspect the note, and get necessary input parameters