(self, task, timeout)
| 61 | return None |
| 62 | |
| 63 | def handleCaptcha(self, task, timeout): |
| 64 | cli = self.core.isClientConnected() |
| 65 | |
| 66 | task.setWaiting(timeout) |
| 67 | |
| 68 | # if cli: # Client connected -> should solve the captcha |
| 69 | # task.setWaiting(50) # Wait minimum 50 sec for response |
| 70 | |
| 71 | for plugin in self.core.hookManager.activePlugins(): |
| 72 | try: |
| 73 | plugin.newCaptchaTask(task) |
| 74 | except: |
| 75 | if self.core.debug: |
| 76 | print_exc() |
| 77 | |
| 78 | if task.handler or cli: # The captcha was handled |
| 79 | self.tasks.append(task) |
| 80 | return True |
| 81 | |
| 82 | task.error = _("No Client connected for captcha decrypting") |
| 83 | |
| 84 | return False |
| 85 | |
| 86 | |
| 87 | class CaptchaTask(): |
no test coverage detected