How to use the paperwork.frontend.util.jobs.Job.__init__ function in paperwork

To help you get started, we’ve selected a few paperwork examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openpaperwork / paperwork / paperwork-gtk / src / paperwork / frontend / mainwindow / docs.py View on Github external
def __init__(self, factory, id, doclist, already_loaded):
        Job.__init__(self, factory, id)
        self.doclist = doclist
        self.__already_loaded = already_loaded
        self.__current_idx = -1
github openpaperwork / paperwork / paperwork-gtk / src / paperwork / frontend / mainwindow / docs.py View on Github external
def __init__(self, factory, id, docsearch, label):
        Job.__init__(self, factory, id)
        self.__docsearch = docsearch
        self.__label = label
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow / __init__.py View on Github external
def __init__(self, factory, id, main_win, config, importer, file_uri):
        Job.__init__(self, factory, id)
        self.__main_win = main_win
        self.__config = config
        self.importer = importer
        self.file_uri = file_uri
github openpaperwork / paperwork / paperwork-gtk / src / paperwork / frontend / mainwindow / docs.py View on Github external
def __init__(self, factory, id, docsearch, old_label, new_label):
        Job.__init__(self, factory, id)
        self.__docsearch = docsearch
        self.__old_label = old_label
        self.__new_label = new_label
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow / __init__.py View on Github external
def __init__(self, factory, id, page):
        Job.__init__(self, factory, id)
        self.page = page
github openpaperwork / paperwork / paperwork-gtk / src / paperwork / frontend / mainwindow / pages.py View on Github external
def __init__(self, factory, job_id, pil_img, process_func):
        Job.__init__(self, factory, job_id)
        self.pil_img = pil_img
        self.process_func = process_func
        self.can_run = True
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow / __init__.py View on Github external
def __init__(self, factory, job_id, config):
        Job.__init__(self, factory, job_id)
        self.__config = config
        self.started = False
        self.done = False
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow / __init__.py View on Github external
def __init__(self, factory, id, config, docsearch,
                 new_docs=set(), upd_docs=set(), del_docs=set(),
                 optimize=True):
        Job.__init__(self, factory, id)
        self.__docsearch = docsearch
        self.__config = config

        self.__condition = threading.Condition()

        self.new_docs = new_docs
        self.upd_docs = upd_docs
        self.del_docs = del_docs

        self.update_only = len(new_docs) == 0 and len(del_docs) == 0

        self.optimize = optimize
        self.index_updater = None
        self.total = (len(self.new_docs) + len(self.upd_docs) +
                      len(self.del_docs))
        self.progression = float(0)
github openpaperwork / paperwork / src / paperwork / frontend / mainwindow / __init__.py View on Github external
def __init__(self, factory, id, config, docsearch):
        Job.__init__(self, factory, id)
        self.__config = config
        self.docsearch = docsearch
        self.done = False
        self.started = False

        self.labels = set()