This commit is contained in:
Kovid Goyal 2014-05-04 23:12:53 +05:30
parent b2997acb46
commit 6a95c08f85

View File

@ -225,7 +225,6 @@ class Plugin(object): # {{{
ans[candidate] = zf.read(candidate)
return ans
def customization_help(self, gui=False):
'''
Return a string giving help on how to customize this plugin.
@ -284,7 +283,6 @@ class Plugin(object): # {{{
sys.path.insert(0, self.sys_insertion_path)
zf.close()
def __exit__(self, *args):
ip, it = getattr(self, 'sys_insertion_path', None), getattr(self,
'_sys_insertion_tdir', None)
@ -516,8 +514,7 @@ class CatalogPlugin(Plugin): # {{{
from calibre.customize.ui import config
from calibre.ptempfile import PersistentTemporaryDirectory
if not type(self) in builtin_plugins and \
not self.name in config['disabled_plugins']:
if not type(self) in builtin_plugins and self.name not in config['disabled_plugins']:
files_to_copy = ["%s.%s" % (self.name.lower(),ext) for ext in ["ui","py"]]
resources = zipfile.ZipFile(self.plugin_path,'r')
@ -733,6 +730,7 @@ class ViewerPlugin(Plugin): # {{{
example, you can modify the toolbars via ui.tool_bar and ui.tool_bar2.
'''
pass
def customize_context_menu(self, menu, event, hit_test_result):
'''
This method is called every time the context (right-click) menu is
@ -743,4 +741,3 @@ class ViewerPlugin(Plugin): # {{{
pass
# }}}