From a3dfd09a8d560f6e6591de2e1de95e82ed2ddce3 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 17 Jul 2013 11:50:15 +0200 Subject: improved inputTypes, config api --- pyload/interaction/InteractionManager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyload/interaction/InteractionManager.py') diff --git a/pyload/interaction/InteractionManager.py b/pyload/interaction/InteractionManager.py index 9c5449b31..36d457323 100644 --- a/pyload/interaction/InteractionManager.py +++ b/pyload/interaction/InteractionManager.py @@ -71,21 +71,21 @@ class InteractionManager: :param plugin: plugin name :return: :class:`InteractionTask` """ - task = InteractionTask(self.ids, IA.Notification, Input(InputType.Text, content), "", title, desc, plugin, + task = InteractionTask(self.ids, IA.Notification, Input(InputType.Text, None, content), title, desc, plugin, owner=owner) self.ids += 1 self.queueTask(task) return task @lock - def createQueryTask(self, input, desc, default="", plugin="", owner=None): + def createQueryTask(self, input, desc, plugin="", owner=None): # input type was given, create a input widget if type(input) == int: input = Input(input) if not isinstance(input, Input): raise TypeError("'Input' class expected not '%s'" % type(input)) - task = InteractionTask(self.ids, IA.Query, input, default, _("Query"), desc, plugin, owner=owner) + task = InteractionTask(self.ids, IA.Query, input, _("Query"), desc, plugin, owner=owner) self.ids += 1 self.queueTask(task) return task @@ -104,11 +104,11 @@ class InteractionManager: elif type == 'positional': type = InputType.Click - input = Input(type, [standard_b64encode(img), format, filename]) + input = Input(type, data=[standard_b64encode(img), format, filename]) #todo: title desc plugin task = InteractionTask(self.ids, IA.Captcha, input, - None, _("Captcha request"), _("Please solve the captcha."), plugin, owner=owner) + _("Captcha request"), _("Please solve the captcha."), plugin, owner=owner) self.ids += 1 self.queueTask(task) -- cgit v1.2.3