def __init__(self, plugin, index): ObjectExtension.__init__(self, plugin, index) self.plugin = plugin self.index = index self.preferences = plugin.preferences self.task_labels = None self.task_label_re = None self.next_label = None self.next_label_re = None self.nonactionable_tags = [] self.included_re = None self.excluded_re = None self.db_initialized = False self._current_preferences = None db_version = self.index.properties['plugin_tasklist_format'] if db_version == '%i.%i' % SQL_FORMAT_VERSION: self.db_initialized = True self._set_preferences() self.connectto(plugin.preferences, 'changed', self.on_preferences_changed) self.connectto_all(self.index, ( ('initialize-db', self.initialize_db, None, SIGNAL_AFTER), ('page-indexed', self.index_page), ('page-deleted', self.remove_page), ))
def __init__(self, plugin, index): ObjectExtension.__init__(self, plugin, index) self.plugin = plugin self.index = index self.cache = {} # to cache self.get() function self.db_initialized = False db_version = self.index.properties['plugin_iconlist_format'] if db_version == '%i.%i' % SQL_FORMAT_VERSION: self.db_initialized = True self.connect_signals()
def __init__(self, plugin, notebook): ObjectExtension.__init__(self, plugin, notebook) self.notebook = 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 = TasksIndexer.new_from_index(self.index, plugin.preferences) self.connectto(self.indexer, 'tasklist-changed') self.connectto(plugin.preferences, 'changed', self.on_preferences_changed)
def __init__(self, plugin, notebook): ObjectExtension.__init__(self, plugin, notebook) self.notebook = 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(plugin.preferences, 'changed', self.on_preferences_changed)
def __init__(self, plugin, notebook): ObjectExtension.__init__(self, plugin, notebook) self.plugin = plugin self.notebook = notebook self.detect_vcs()
def __init__(self, plugin, index): ObjectExtension.__init__(self, plugin, index) self.plugin = plugin self.index = index