summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-26 22:35:20 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-26 22:35:20 +0100
commitb5d1c47ac2590fe4314d7e96d58443c30463746c (patch)
treebf35105179c5fc841edc26b86b8ed96f148f2b35 /module/gui/connector.py
parentpluginconfig now in xml (diff)
downloadpyload-b5d1c47ac2590fe4314d7e96d58443c30463746c.tar.xz
gui contaoner upload, closes #39
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r--module/gui/connector.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index 4ac635200..e52cf42ff 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -304,3 +304,16 @@ class connector(QThread):
self.emit(SIGNAL("proxy_error"), "removeFile")
finally:
self.mutex.unlock()
+
+ def uploadContainer(self, filename, type, content):
+ """
+ upload a container
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.upload_container(filename, type, content)
+ except:
+ self.emit(SIGNAL("proxy_error"), "uploadContainer")
+ finally:
+ self.mutex.unlock()
+