donoban
cbc5d364bf
Removed sigchld_handler old code
2018-11-04 18:19:16 +01:00
donoban
5c8f19b598
Fix pylint
2018-10-27 13:21:33 +02:00
donoban
c42203098f
Do not terminate the thread
...
self.back_restore.canceled will do the abort
2018-10-27 13:00:19 +02:00
donoban
988b7a6479
Fix error/success message on dialog
2018-10-27 12:58:58 +02:00
donoban
9102d200bd
restart wizzard when wrong password or backup corrupted
...
fix: https://github.com/QubesOS/qubes-issues/issues/1589
2018-10-22 23:47:51 +02:00
donoban
edb13aec17
Thread.error renamed to Thread.msg
...
Since it could be used for both error or sucess
messages, I think msg is a better name
2018-10-22 20:00:37 +02:00
donoban
60af90ec5f
Adding # pylint: disable=too-few-public-methods
2018-10-22 10:14:26 +02:00
donoban
831769d2dd
Fix travis build
2018-10-20 23:01:35 +02:00
donoban
29ca4eb3a8
Migration from python threads and to QThread obj
...
Simple design and better performance, just start() thread and finished
call back will show any error or msg, stop progress dialog and do cleanup.
Full remove of QT process_events() calls.
2018-10-20 18:34:15 +02:00
Marta Marczykowska-Górecka
027abd8ac3
Pylint corrections
...
Pylint 2.0 was complaining. Cosmetic fixes to make it stop.
2018-07-20 00:25:27 +02:00
Marta Marczykowska-Górecka
bb8abff988
Suggested changes
...
included changes as suggested by @marmarek.
2018-01-06 02:21:07 +01:00
Marta Marczykowska-Górecka
df31207028
Final tiny fix of unused import
...
Threw out unused import of shutil.
2017-12-11 02:41:50 +01:00
Marta Marczykowska-Górecka
7fd0c58303
Restored 'cancel' functionality
...
Now user can actually cancel a backup/restore.
2017-12-11 02:28:15 +01:00
Marta Marczykowska-Górecka
14ebf9dc6d
Fixed opening file dialog at the end
...
Now, when "open file dialog to unmount" option is enabled, a fie dialog
actually opens.
2017-12-11 02:07:10 +01:00
Marta Marczykowska-Górecka
a4a58cc527
Fixed progress bars
...
Partial fix - the progress bars now move, although they do not really
indicate progress (just dance back and forth). Future fix would include
making a tray icon to signal backup progress instead.
2017-12-11 01:32:26 +01:00
Marta Marczykowska-Górecka
78b4747e81
Second pylint pass
...
Fixed errors pointed out by pylint on server.
2017-12-11 01:15:07 +01:00
Marta Marczykowska-Górecka
a1c6e72569
First pylint pass
...
Fixed errors pointed out by pylint.
2017-12-11 00:56:27 +01:00
Marta Marczykowska-Górecka
4e2835531e
Usability fixes
...
Added label to inform the user only running VMs are listed in backup
GUI; made "ignore missing" label clearer.
2017-12-11 00:13:15 +01:00
Marta Marczykowska-Górecka
7848b6b2c3
Fixed inability to select which VMs to restore
...
Fixed bug that caused all VMs to be restored, regardless of what the
user selected.
2017-12-10 23:56:22 +01:00
Marta Marczykowska-Górecka
9d73ceb99d
Fixed imports
...
Fixed import * and unused imports.
2017-12-10 22:11:07 +01:00
Marta Marczykowska-Górecka
7a4e4b35d5
Initial backup-and-restore GUI restoration
...
Initial restoration: basic backup-and-restore works, but
- progress bar in backup does not work
- selecting only some VMs to restore does not work
- various miscellaneous enhancements are not yet in place
2017-12-10 21:14:14 +01:00
Marta Marczykowska-Górecka
3009610a62
Fixed GPL license
...
Replaced old, address-having, too-many-characters-in-a-line version with
the new one with URL.
2017-11-06 21:06:30 +01:00
Marta Marczykowska-Górecka
41b602ec48
Initial setup
...
Initialize .pylintrc, put ignore in used files' headers.
2017-11-06 20:36:09 +01:00
Wojtek Porczyk
2c3df7bd67
spring cleaning part 5: more python3 fixes
2017-07-12 14:54:14 +02:00
Marta Marczykowska-Górecka
fb3dc6ecf7
update qubesmanager to compile under python3.
...
note: qvm-net.py has changed location to a weird one.
2017-06-25 17:53:23 +02:00
Jean-Philippe Ouellet
2f72aaf05f
Add more missing unicode()s around .tr()s
...
Fixes https://github.com/QubesOS/qubes-issues/issues/2637
2017-02-19 21:49:03 -05:00
Marek Marczykowski-Górecki
d073b3582d
i18n: wrap self.tf in unicode() where 'format' function is used
...
Qstring (returned by self.tr) does not have 'format' method.
Fixes QubesOS/qubes-issues#2599
2017-02-06 04:20:13 +01:00
Marek Marczykowski-Górecki
7c602bf7d2
i18n: wrap strings with self.tr
...
Allow translations to handle strings defined in code.
Fixes QubesOS/qubes-issues#2599
2017-01-22 13:22:26 +01:00
Marek Marczykowski-Górecki
5e925b23d4
backup+restore: remove an option to attach disk from a VM to dom0
...
This is (intentionally) not possible in R3. The user can choose to
backup directly to the VM, encrypting the backup in dom0 first.
2015-03-31 05:40:53 +02:00
Marek Marczykowski-Górecki
470e1c0879
backups/restore: always allow an option to manually unmount storage device
2014-09-26 15:01:37 +02:00
Marek Marczykowski-Górecki
1ff9ce8a46
backups/restore: add support for 'verify-only' option
2014-09-17 23:07:32 +02:00
Marek Marczykowski-Górecki
c2ae785c5d
backups/restore: fix handling of unicode messages, improve indentation
2014-09-17 23:06:41 +02:00
Wojciech Zygmunt Porczyk
e9f1bb3880
*.py: Use full paths when calling subprocess.Popen().
...
Also removed unneeded imports of subprocess.
2014-05-22 15:07:35 +02:00
Marek Marczykowski-Górecki
c2038ec20b
backups: open file selection dialog at the end for unmounting the disk ( #831 )
2014-05-15 03:06:51 +02:00
Marek Marczykowski-Górecki
3016c06d91
backups: use backup_cancel() to interrupt backup/restore operation ( #793 )
2014-03-08 03:58:59 +01:00
Marek Marczykowski-Górecki
53433bc47d
backups: fix unicode handling in passphrase and backup path
...
Convert from QString to unicode, not str object.
2014-02-05 06:54:22 +01:00
Marek Marczykowski-Górecki
4f7d3451b2
backups: remove "skip dom0" option ( #791 )
...
User always can choose (or not) dom0 on the VMs selection page.
2014-02-05 04:31:37 +01:00
Marek Marczykowski-Górecki
89f7c30a7e
backups/restore: improve handling "Back" button
...
Do not reset entered data, but recheck selected VMs dependencies.
2014-01-13 05:22:52 +01:00
Marek Marczykowski-Górecki
07068be8ed
backups: improve handling of dom0 devices
...
Do not use blk_manager if the device is already in dom0, try to detach
device only when it was mounted (otherwise it was detached already in
error handling code).
2014-01-13 05:19:43 +01:00
Marek Marczykowski-Górecki
745b5d479f
backups: update for simplified restore API calls
2014-01-13 05:18:03 +01:00
Marek Marczykowski-Górecki
26d4f67963
backups: detach block device when finished or error occurred
2014-01-12 05:42:19 +01:00
Marek Marczykowski-Górecki
5f7113e11e
backups: allow only one of "block device" and "VM"
...
Block device can be pointed only when source VM is "dom0".
2014-01-12 05:20:48 +01:00
Marek Marczykowski-Górecki
d8a6e4a4b1
backups: simplify getting dom0 object
2014-01-12 05:18:56 +01:00
Marek Marczykowski-Górecki
92a6a85a4b
backups: kill self.backup_location variable
...
This is copy of dir_line_edit content and its easy to desynchronize its
value, so just use the later directly.
2014-01-11 22:57:34 +01:00
Marek Marczykowski-Górecki
004893d8de
backups: enable back error reporting
...
The final error message wasn't shown (only the fact that backup failed).
2014-01-10 03:40:11 +01:00
Marek Marczykowski-Górecki
1e7eaf3776
backups: disable SIGCHLD handler for the time of running backup
...
Otherwise some syscalls would return EINTR. This is much easier (and
more readable!) solution than wrapping each syscall with try:except and
some loop.
2014-01-10 03:38:38 +01:00
Marek Marczykowski-Górecki
589f2e7eb7
backups: allow to enter custom backup location (restore)
...
If "dom0" chosen, verify if the location exists.
2013-12-29 04:59:59 +01:00
Marek Marczykowski-Górecki
568ce68ca5
backups: improve error reporting during restore
2013-11-29 03:33:17 +01:00
Marek Marczykowski-Górecki
668bb1fdf6
backups: deal with multithread restore process
...
Only GUI thread can interact with GUI widgets, so queue the requests and
process from GUI thread. This applies to backup progress reports.
2013-11-29 03:26:51 +01:00
Marek Marczykowski-Górecki
21d72cdc6c
backups: UI improvements
...
Prompt for retype the backup password, more thoroughly test if the user
entered all required informations, use "dom0" instead of "None" for local
backup indication.
2013-11-28 03:52:02 +01:00