Andreas Zweili
0fa077989d
add a debug function to work with pdb
2019-02-16 11:34:59 +01:00
Andreas Zweili
3d222e3236
reimplement the run method on the backup class
...
For some reason the BorgExceptions from the backup thread don't get caught in
the main_window. Therefore I'm implementing the error handling directly in the
class for the moment. This will have the side effect that the error dialog will
pop up when there is a problem during a background backup.
However that is anyway something I thought about implementing. This way it's
just not properly implemented yet.
2019-02-16 11:29:30 +01:00
Andreas Zweili
143f01d1e8
Revert "fix the displaying of the error dialogs"
...
This reverts commit 37985fbb24
.
2019-02-16 11:23:44 +01:00
Andreas Zweili
37985fbb24
fix the displaying of the error dialogs
...
Exceptions which get raised in threads don't bubble up into the main code on
their own. So we either communicate them to the main loop or we handle them
directly in the thread. I'm going for the later for the moment because the
other way seems to be quite complex.
2019-02-16 10:17:13 +01:00
Andreas Zweili
1d7f6363d9
change pass to return in the error processing method
...
Passing lets the function to continue however we want to stop it early
therefore we return.
2019-02-16 10:16:07 +01:00
Andreas Zweili
26b171fb34
fix the remove venv command in the make file
2019-02-16 10:14:52 +01:00
Andreas Zweili
8f4a08e418
fix the shebang in the main script
2019-02-16 10:14:25 +01:00
Andreas Zweili
29780723f6
empty the mount_paths property after unmounting the archives
2019-02-16 10:12:38 +01:00
Andreas Zweili
d283c58a2f
add dialog to unmount all archives before creating a new one
2019-02-15 21:27:00 +01:00
Andreas Zweili
a2936ba1e9
unify dialog texts
2019-02-14 22:55:16 +01:00
Andreas Zweili
d3534d2cbb
make the include and exclude UI clearer to read
2019-02-14 22:49:33 +01:00
Andreas Zweili
ab26d952ed
add/update and extend various comments
2019-02-10 17:21:41 +01:00
Andreas Zweili
4c3fb85fcf
fix a typo
2019-02-10 17:19:00 +01:00
Andreas Zweili
cb65baf8e5
remove unnecessary code
2019-02-10 16:17:26 +01:00
Andreas Zweili
48e5f28cf3
add a path is writeable check to the restore function
2019-02-09 14:09:32 +01:00
Andreas Zweili
52d7215094
extend the delete function with a yes/no dialog
2019-02-09 10:14:48 +01:00
Andreas Zweili
8c9f7bc329
rework the borg interface
2019-02-07 21:35:14 +01:00
Andreas Zweili
6ad26c4f3e
fix the backup funcionality
...
Wrapping the excludes in "" was a stupid idea. Since it's already a string it's
totally unnecessary.
2019-02-04 16:24:12 +01:00
Andreas Zweili
d8e2129b47
make sure that the mount path only gets appended if the mount worked
2019-02-04 16:23:48 +01:00
Andreas Zweili
1a1aa5dee8
improve the excludes in the example config
2019-02-04 15:48:40 +01:00
Andreas Zweili
23dd1ae1a8
remove the static info label
2019-02-04 15:11:48 +01:00
Andreas Zweili
cf55232fc5
hide the password
2019-02-04 10:19:04 +01:00
Andreas Zweili
bbc94b5f5c
move the description labels closer together
2019-02-04 10:18:40 +01:00
Andreas Zweili
2c8b852f09
fix the server path
2019-02-03 21:50:50 +01:00
Andreas Zweili
2c33a06d9b
extend error messages
2019-02-03 21:36:47 +01:00
Andreas Zweili
e4848911d7
remove unused imports
2019-02-03 21:36:37 +01:00
Andreas Zweili
8ddf7dbae6
make sure the restore tests cleans up after itself
2019-02-03 21:36:24 +01:00
Andreas Zweili
f5c052c2ee
refactor code to use the create_path and remove_path functions
2019-02-03 21:35:53 +01:00
Andreas Zweili
1ae842f81e
add mount functionality
2019-02-03 21:34:36 +01:00
Andreas Zweili
df95a80b37
extend test_write_config to check every value in the config
2019-02-03 19:38:20 +01:00
Andreas Zweili
598fca281e
remove an unused import
2019-02-03 19:38:04 +01:00
Andreas Zweili
2e67c1200a
add delete functionality
2019-02-02 16:37:38 +01:00
Andreas Zweili
b42ddcc0e0
add restore functionality
2019-02-02 14:54:37 +01:00
Andreas Zweili
4c97722ca6
update the readme
2019-02-02 14:52:38 +01:00
Andreas Zweili
d82f2da824
add backup functionality
2019-02-02 11:27:38 +01:00
Andreas Zweili
a37125ec87
use _return_single_option whenever there is a option lookup needed
2019-01-28 11:14:43 +01:00
Andreas Zweili
91eb47a536
make tests for absent and empty options more robust
2019-01-28 11:14:13 +01:00
Andreas Zweili
729c92ed41
fix a key lookup in the Config class
2019-01-27 21:42:48 +01:00
Andreas Zweili
0ae781745e
add various comments
2019-01-27 14:49:31 +01:00
Andreas Zweili
ece12ba03c
remove an unused file
2019-01-27 14:29:47 +01:00
Andreas Zweili
1212af9a64
fix a unittest
2019-01-26 11:45:30 +01:00
Andreas Zweili
a0fcf76075
remove unused import
2019-01-26 11:45:17 +01:00
Andreas Zweili
5e692032fe
move the BorgQtTestCase into its own file
2019-01-26 11:44:51 +01:00
Andreas Zweili
258d978a02
move the first config read into a method
2019-01-26 11:25:26 +01:00
Andreas Zweili
41eb500132
Merge branch 'master' into exceptions
2019-01-26 10:41:38 +01:00
Andreas Zweili
24f4648bd9
show error dialog when config file is missing
2019-01-26 10:41:12 +01:00
Andreas Zweili
6c9e64f9dc
add a function to display an error dialog
2019-01-26 10:40:51 +01:00
Andreas Zweili
ccfbc843f1
move the window title after the loadUi method
...
otherwise the title get's overwritten again
Found here in the comments:
https://stackoverflow.com/a/32097504/7723859
2019-01-26 10:38:30 +01:00
Andreas Zweili
95fa81c13e
change windows title to Borg-Qt
2019-01-26 10:29:04 +01:00
Andreas Zweili
8d7d5ead2d
remove old comments
2019-01-24 21:38:37 +01:00