示例#1
0
文件: base.py 项目: Polyfun/calibre
 def __init__(self, *args, **kwargs):
     Plugin.__init__(self, *args, **kwargs)
     self.running_a_test = False  # Set to True when using identify_test()
     self._isbn_to_identifier_cache = {}
     self._identifier_to_cover_url_cache = {}
     self.cache_lock = threading.RLock()
     self._config_obj = None
     self._browser = None
     self.prefs.defaults['ignore_fields'] = []
     for opt in self.options:
         self.prefs.defaults[opt.name] = opt.default
示例#2
0
 def __init__(self, *args, **kwargs):
     Plugin.__init__(self, *args, **kwargs)
     self.running_a_test = False  # Set to True when using identify_test()
     self._isbn_to_identifier_cache = {}
     self._identifier_to_cover_url_cache = {}
     self.cache_lock = threading.RLock()
     self._config_obj = None
     self._browser = None
     self.prefs.defaults['ignore_fields'] = []
     for opt in self.options:
         self.prefs.defaults[opt.name] = opt.default
示例#3
0
 def __init__(self, *args, **kwargs):
     _Plugin.__init__(self, *args, **kwargs)
     self.width, self.height = self.screen_size
     fsizes = list(self.fsizes)
     self.fkey = list(self.fsizes)
     self.fsizes = []
     for (name, num), size in izip(FONT_SIZES, fsizes):
         self.fsizes.append((name, num, float(size)))
     self.fnames = dict((name, sz) for name, _, sz in self.fsizes if name)
     self.fnums = dict((num, sz) for _, num, sz in self.fsizes if num)
     self.width_pts = self.width * 72. / self.dpi
     self.height_pts = self.height * 72. / self.dpi
示例#4
0
 def __init__(self, *args, **kwargs):
     _Plugin.__init__(self, *args, **kwargs)
     self.width, self.height = self.screen_size
     fsizes = list(self.fsizes)
     self.fkey = list(self.fsizes)
     self.fsizes = []
     for (name, num), size in izip(FONT_SIZES, fsizes):
         self.fsizes.append((name, num, float(size)))
     self.fnames = dict((name, sz) for name, _, sz in self.fsizes if name)
     self.fnums = dict((num, sz) for _, num, sz in self.fsizes if num)
     self.width_pts = self.width * 72./self.dpi
     self.height_pts = self.height * 72./self.dpi
示例#5
0
文件: conversion.py 项目: yws/calibre
 def __init__(self, *args):
     Plugin.__init__(self, *args)
     self.report_progress = DummyReporter()
示例#6
0
 def __init__(self, *args):
     Plugin.__init__(self, *args)
     self.report_progress = DummyReporter()