diff options
author | Papoteur <papoteur@mageia.org> | 2018-10-10 14:43:23 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-10-10 14:43:23 +0200 |
commit | ab2638828a1f80f3c2cae77d313d071ae8811428 (patch) | |
tree | 1d46ee265383d2a6870485a722121ba5d65c3a2c /backend/magiback | |
parent | 9b88f96ffafe2176fb76af2e83d0d0c72ee44635 (diff) | |
download | isodumper-ab2638828a1f80f3c2cae77d313d071ae8811428.tar isodumper-ab2638828a1f80f3c2cae77d313d071ae8811428.tar.gz isodumper-ab2638828a1f80f3c2cae77d313d071ae8811428.tar.bz2 isodumper-ab2638828a1f80f3c2cae77d313d071ae8811428.tar.xz isodumper-ab2638828a1f80f3c2cae77d313d071ae8811428.zip |
Apply same method over DBus to Backup feature
Diffstat (limited to 'backend/magiback')
-rwxr-xr-x | backend/magiback | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/magiback b/backend/magiback index f5c58a7..7f3785b 100755 --- a/backend/magiback +++ b/backend/magiback @@ -16,6 +16,7 @@ class Isodumper(raw_write.Dumper): <method name='do_write'> <arg type='s' name='source' direction='in'/> <arg type='s' name='target' direction='in'/> + <arg type='x' name='size' direction='in'/> </method> <method name='do_unmount'> <arg type='s' name='device' direction='in'/> @@ -53,11 +54,10 @@ class Isodumper(raw_write.Dumper): self.authorized_sender_read = set() self.authorized_sender_write = set() - def do_write(self,source, target, dbus_context): + def do_write(self,source, target, size, dbus_context): if check_permission('org.mageia.Magiback.Isodumper.write',dbus_context): - print("Writing") self.finished.clear() - self.thread = threading.Thread(target=self._do_write, args=(source, target, )) + self.thread = threading.Thread(target=self._do_write, args=(source, target, size, )) self.thread.start() else: self.return_message = "Access denied" |