From 0f90f432538ae73bbc975e6b801a3c3bb60c91b8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 8 Aug 2011 16:03:24 +0200 Subject: disabled GUI, fix captcha --- module/gui/ConnectionManager.py | 8 +++++++- module/plugins/hooks/IRCInterface.py | 2 +- pyLoadGui.py | 11 ++++++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py index 7a7a25f5f..8bf4ff24b 100644 --- a/module/gui/ConnectionManager.py +++ b/module/gui/ConnectionManager.py @@ -26,7 +26,13 @@ from uuid import uuid4 as uuid class ConnectionManager(QWidget): def __init__(self): QWidget.__init__(self) - + + QMessageBox.warning(self, 'Warning', + "We are sorry but the GUI is not stable anymore. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + + return + + mainLayout = QHBoxLayout() buttonLayout = QVBoxLayout() diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index 28087a126..e2737dc3a 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -89,7 +89,7 @@ class IRCInterface(Thread, Hook): page = getURL("http://www.freeimagehosting.net/upload.php", post={"attached" : (FORM_FILE, task.captchaFile)}, multipart=True) - url = re.search(r"\[url=http://www.freeimagehosting.net/\]\[img\]([^\[]+)\[/img\]\[/url\]", page).group(1) + url = re.search(r"\[img\]([^\[]+)\[/img\]\[/url\]", page).group(1) self.response(_("New Captcha Request: %s") % url) self.response(_("Answer with 'c %s text on the captcha'") % task.id) diff --git a/pyLoadGui.py b/pyLoadGui.py index 33326c416..298f227ce 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -104,11 +104,16 @@ class main(QObject): except: translation.install(unicode=False) - self.connector = Connector() - self.mainWindow = MainWindow(self.connector) + + #self.connector = Connector() + #self.mainWindow = MainWindow(self.connector) self.connWindow = ConnectionManager() self.mainloop = self.Loop(self) - self.connectSignals() + self.connWindow.show() + + sys.exit() + + #self.connectSignals() self.checkClipboard = False default = self.refreshConnections() -- cgit v1.2.3