def __init__(self, plugin, notebook): NotebookExtension.__init__(self, plugin, notebook) self.properties = self.plugin.notebook_properties(notebook) self._parser_key = self._get_parser_key() self.index = notebook.index if self.index.get_property(TasksIndexer.PLUGIN_NAME) != TasksIndexer.PLUGIN_DB_FORMAT: self.index._db.executescript(TasksIndexer.TEARDOWN_SCRIPT) # XXX self.index.flag_reindex() self.indexer = None self._setup_indexer(self.index, self.index.update_iter) self.connectto(self.index, 'new-update-iter', self._setup_indexer) self.connectto(self.properties, 'changed', self.on_properties_changed)
def __init__(self, plugin, notebook): NotebookExtension.__init__(self, plugin, notebook) self.vcs = None self.detect_vcs()
def __init__(self, plugin, notebook): NotebookExtension.__init__(self, plugin, notebook) self.connectto_all(notebook, ('deleted-page', 'stored-page'), order=SIGNAL_AFTER)
def __init__(self, plugin, notebook): NotebookExtension.__init__(self, plugin, notebook) self.connectto_all( notebook, ('suggest-link', 'get-page-template', 'init-page-template') )