From c881b83f107e3c5b28bfcc06508d4db128d37e20 Mon Sep 17 00:00:00 2001 From: Jeix Date: Fri, 19 Nov 2010 14:15:17 +0100 Subject: sharecx fix and gui package edit --- pyLoadGui.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'pyLoadGui.py') diff --git a/pyLoadGui.py b/pyLoadGui.py index c52a86052..441b01caa 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -21,7 +21,7 @@ import sys -from uuid import uuid4 as uuid +from uuid import uuid4 as uuid # should be above PyQt imports from time import sleep, time from PyQt4.QtCore import * @@ -464,12 +464,18 @@ class main(QObject): """ self.connector.setPause(not status) - def slotAddPackage(self, name, links): + def slotAddPackage(self, name, links, password=None, id=None): """ emitted from main window add package to the collector """ - self.connector.proxy.add_package(name, links) + if id: + self.connector.removePackage(id) + + pack = self.connector.proxy.add_package(name, links) + if password: + data = {"password": password} + self.connector.proxy.set_package_data(pack, data) def slotAddFileToPackage(self, pid, fid): """ -- cgit v1.2.3