msanger / flyback

Automatically exported from code.google.com/p/flyback
0 stars 0 forks source link

Remove GTK code from back-end #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm working on a patch to remove the GTK dependencies from backup_backend.py.

The backend will maintain a list of event listeners, and the GUI will
register itself as a listener.  The backend will then call the event
notification method on the listeners instead of directly updating the GUI.

The event notification method in flyback.py will do the thread sync and
update of the GUI.

In addition, if the backup cannot run then an exception will be thrown,
which the GUI code in flyback.py will catch and inform the user.

Original issue reported on code.google.com by staz6...@gmail.com on 17 Nov 2007 at 10:03

GoogleCodeExporter commented 9 years ago
sounds great.  look forward to seeing it.  :)

Original comment by mami.nak...@gmail.com on 19 Nov 2007 at 2:50

GoogleCodeExporter commented 9 years ago
Here is the first pass at a patch for this.  It is not yet complete though, and 
the
backup backend still references the GTK stuff.

In addition to starting to move to the listener-based approach, the patch also
introduces support for test configurations.  I built this because I didn't want 
to
have to do real backups just to test the event notification system. 

Original comment by staz6...@gmail.com on 19 Nov 2007 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, and the backup routine now supports dry runs as well, again to help with 
testing
but this might be something you'd want to expose to users at some point.

Original comment by staz6...@gmail.com on 19 Nov 2007 at 9:43

GoogleCodeExporter commented 9 years ago
fyi, comment #1 was made by me.

Original comment by pub...@kered.org on 20 Nov 2007 at 7:34

GoogleCodeExporter commented 9 years ago
Did the patch work for you?

Original comment by staz6...@gmail.com on 20 Nov 2007 at 10:36

GoogleCodeExporter commented 9 years ago
resolved in v0.5

Original comment by pub...@kered.org on 27 Oct 2009 at 4:53