From 6e8a0f79f5ad7182a0bc35308ae06c63222667ed Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 23 Mar 2013 21:56:42 +0100 Subject: implemented interactions for multi user, show waiting queries on webui --- module/plugins/Base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module/plugins/Base.py') diff --git a/module/plugins/Base.py b/module/plugins/Base.py index 6ae2da249..70805b7f3 100644 --- a/module/plugins/Base.py +++ b/module/plugins/Base.py @@ -304,9 +304,8 @@ class Base(object): ocr = OCR() result = ocr.get_captcha(temp_file.name) else: - task = self.im.newCaptchaTask(img, imgtype, temp_file.name, result_type) + task = self.im.createCaptchaTask(img, imgtype, temp_file.name, self.__name__, result_type) self.task = task - self.im.handleTask(task) while task.isWaiting(): if self.abort(): @@ -322,7 +321,7 @@ class Base(object): elif task.error: self.fail(task.error) elif not task.result: - self.fail(_("No captcha result obtained in appropriate time by any of the plugins.")) + self.fail(_("No captcha result obtained in appropriate time.")) result = task.result self.log.debug("Received captcha result: %s" % str(result)) -- cgit v1.2.3