本文整理汇总了Python中calibre.ebooks.metadata.sources.base.Source类的典型用法代码示例。如果您正苦于以下问题:Python Source类的具体用法?Python Source怎么用?Python Source使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Source类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, *args, **kwargs):
self.logger = logging.getLogger('urls')
self.logger.setLevel(logging.DEBUG)
self.logger.addHandler(CalibreHandler(logging.DEBUG))
comicvine_logger = logging.getLogger(
'calibre_plugins.comicvine.pycomicvine')
comicvine_logger.setLevel(logging.DEBUG)
comicvine_logger.addHandler(CalibreHandler(logging.DEBUG))
self._qlock = threading.RLock()
Source.__init__(self, *args, **kwargs)
示例2: __init__
def __init__(self, *args, **kwargs):
Source.__init__(self, *args, **kwargs)
prefs = self.prefs
prefs.defaults['key_migrated'] = False
prefs.defaults['isbndb_key'] = None
if not prefs['key_migrated']:
prefs['key_migrated'] = True
try:
from calibre.customize.ui import config
key = config['plugin_customization']['IsbnDB']
prefs['isbndb_key'] = key
except:
pass
示例3: save_settings
def save_settings(self, *args, **kwargs):
Source.save_settings(self, *args, **kwargs)
self.set_amazon_id_touched_fields()
示例4: __init__
def __init__(self, *args, **kwargs):
Source.__init__(self, *args, **kwargs)
self.set_amazon_id_touched_fields()
示例5: __init__
def __init__(self, *args, **kwargs):
self.logger = logging.getLogger('urls')
self.logger.setLevel(logging.DEBUG)
self.logger.addHandler(utils.CalibreHandler(logging.DEBUG))
self._qlock = allocate_lock()
Source.__init__(self, *args, **kwargs)
示例6: __init__
def __init__(self, *args, **kwargs):
Source.__init__(self, *args, **kwargs)