summaryrefslogtreecommitdiffstats
path: root/module/gui/connector.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-21 18:52:51 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-21 18:52:51 +0100
commit9a435f166b8d70fa2e61351b1d84db77c5b42472 (patch)
tree0b0fc9193e8666721b880351d9a5a5ac31f78cb8 /module/gui/connector.py
parenttotal progressbar bullshit (diff)
parentmerged Wugy (diff)
downloadpyload-9a435f166b8d70fa2e61351b1d84db77c5b42472.tar.xz
merged Wugy, 2nd try
Diffstat (limited to 'module/gui/connector.py')
-rw-r--r--module/gui/connector.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/module/gui/connector.py b/module/gui/connector.py
index 32da29bba..e7a151c5e 100644
--- a/module/gui/connector.py
+++ b/module/gui/connector.py
@@ -177,3 +177,23 @@ class connector(QThread):
self.proxy.unpause_server()
finally:
self.mutex.unlock()
+
+ def newPackage(self, name):
+ """
+ create a new package and return id
+ """
+ self.mutex.lock()
+ try:
+ return self.proxy.new_package(name)
+ finally:
+ self.mutex.unlock()
+
+ def addFileToPackage(self, fileid, packid):
+ """
+ add a file from collector to package
+ """
+ self.mutex.lock()
+ try:
+ self.proxy.move_file_2_package(fileid, packid)
+ finally:
+ self.mutex.unlock()