How to use the kss.core.KSSView function in kss

To help you get started, we’ve selected a few kss 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 collective / transmogrify.ploneremote / pretaweb / funnelweb / browser / importers.py View on Github external
data['result_crawwler'] = msg
        self.successMessage = msg

        return True

##
## Progress archtecture
##
# We submit the request which then gets put into a queue and return a form with results pane on it.
# kss timeout will poll for result and fill in results.
# results will be stored in session or similar.
#



class ImportProgress(KSSView):

    @kssaction
    def funnelwebProgress(self):
        return
        sm = self.context.getSiteManager()
        #service = sm.getUtility(lovely.remotetask.interfaces.ITaskService, name="FunnelwebService")

        ksscore = self.getCommandSet('core')
        selector = ksscore.getHtmlIdSelector('form-widgets-results')
        session = self.context.REQUEST.SESSION
        jobid = session.get('jobid')
        if jobid:
            #status = service.getStatus(jobid)
            status = None
        else:
            status = None

kss

A Toolkit for Korean sentence segmentation

BSD-3-Clause
Latest version published 7 months ago

Package Health Score

59 / 100
Full package analysis

Similar packages