Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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