diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-26 22:35:20 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-26 22:35:20 +0100 |
commit | b5d1c47ac2590fe4314d7e96d58443c30463746c (patch) | |
tree | bf35105179c5fc841edc26b86b8ed96f148f2b35 /module/gui/connector.py | |
parent | pluginconfig now in xml (diff) | |
download | pyload-b5d1c47ac2590fe4314d7e96d58443c30463746c.tar.xz |
gui contaoner upload, closes #39
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r-- | module/gui/connector.py | 13 |
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() + |