|
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:1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3 |
URL: <http://savannah.nongnu.org/patch/?6663> 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 _______________________________________________________ Details: 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 module). 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 <http://savannah.nongnu.org/patch/download.php?file_id=16775> ------------------------------------------------------- Date: Sun 02 Nov 2008 11:42:14 AM EST Name: DBUS-README Size: 1kB By: mikix <http://savannah.nongnu.org/patch/download.php?file_id=16776> ------------------------------------------------------- Date: Sun 02 Nov 2008 11:42:14 AM EST Name: dbus_iface.py Size: 3kB By: mikix <http://savannah.nongnu.org/patch/download.php?file_id=16777> ------------------------------------------------------- Date: Sun 02 Nov 2008 11:42:14 AM EST Name: dbustest.py Size: 4kB By: mikix <http://savannah.nongnu.org/patch/download.php?file_id=16778> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?6663> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |