[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-tracker] [patch #6663] Add DBus error support

From: Michael Terry
Subject: [Duplicity-tracker] [patch #6663] Add DBus error support
Date: Sun, 02 Nov 2008 16:42:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3


                 Summary: Add DBus error support
                 Project: duplicity
            Submitted by: mikix
            Submitted on: Sun 02 Nov 2008 11:42:14 AM EST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



This patch adds simple dbus support to duplicity.  It does two things right
now: signal when a new duplicity instance is created and signal when a fatal
error occurs.

In addition to the patch, there are three new files:

duplicity/dbus_iface.py: Actual dbus interaction.  Methods become no-ops if
dbus is not available.

testing/dbustest.py: A couple unit tests.  Requires dbus bindings and Python
2.4 (I couldn't find a way to do what I needed without the subprocess

DBUS-README: A description of the API suitable for dropping in the toplevel
source directory.

One not-strictly-related thing I did was change the return value of duplicity
when --help is passed from 1 to 0.  I felt like that was a more sensible
return value since no error occurred.  And it meant that all non-zero return
values were encapsulated in log.FatalError.


File Attachments:

Date: Sun 02 Nov 2008 11:42:14 AM EST  Name: dbus.diff  Size: 6kB   By: mikix

Date: Sun 02 Nov 2008 11:42:14 AM EST  Name: DBUS-README  Size: 1kB   By:

Date: Sun 02 Nov 2008 11:42:14 AM EST  Name: dbus_iface.py  Size: 3kB   By:

Date: Sun 02 Nov 2008 11:42:14 AM EST  Name: dbustest.py  Size: 4kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]