Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 5, 2015
  1. Set Twisted maxversion <15.2 for py3.2

    Even though Twisted doesn't seem to officially support python3.2,
    Twisted-15.2 explicitly breaks the parts of Twisted that we're using
    in sparts.
    Set a max version for now, but we should consider disabling the Twisted
    bits entirely for 3.2 in the long-term.
Commits on Jul 4, 2015
  1. Handle missing directories in DirectoryWatcherTask more gracefully

    Instead of crashing on ENOENT, catch it and log a warning.
    A new test case verified we no longer break.
    Fixes #56
  2. Add test case for #56

  3. Update tests/tasks/ to use NamedTemporaryDirectory

    ...instead of mkdtemp directly.
    Tests still pass.
  4. Added readfilebytes and writefilebytes

    These methods are like readfile and writefile, but don't treat the
    output/input as unicode respectively.
Commits on Apr 11, 2015
  1. Play more nicely with test frameworks that hijack sys.stdout

    Some test frameworks replace sys.stdout with a StringIO.  StringIO
    doesn't have an `encoding` attribute.  In this case, fall back to
Commits on Apr 10, 2015
Commits on Apr 7, 2015
  1. ignore empty lines

  2. Version bump to 0.7.2 for release

    Also updated CHANGES (adding another note about dbus stability)
Commits on Apr 4, 2015
  1. Merge pull request #98 from bboozzoo/bboozzoo/dbus-threading-fixes-fo…

    dbus: multithreading fixes
Commits on Apr 3, 2015
  1. @bboozzoo

    dbus: init glib threading during DBusMainLoopTask init

    bboozzoo authored
    Signed-off-by: Maciek Borzecki <>
  2. @bboozzoo

    dbus: move commented out bus.close() to asyncStopCb

    bboozzoo authored
    Signed-off-by: Maciek Borzecki <>
Commits on Apr 1, 2015
  1. @bboozzoo
  2. @bboozzoo
Commits on Mar 31, 2015
  1. @bboozzoo

    setup: whitespace cleanup

    bboozzoo authored
  2. @bboozzoo

    dbus: refactor tests to make passive checks

    bboozzoo authored
    To avoid direct calls to dbus, make passive checks for class field
    that is set only if the service failed to acquire the desired name.
  3. @bboozzoo

    dbus: pass service start() and stop() handling through the main loop

    bboozzoo authored
    The main loop used by dbus connection is spinning in separate thread in
    which the DBusMainLoopTask is running. DBus bindings are not
    thread-safe, and the loop has already started (DBusMainLoopTask is a
    prerequisite for DBusServiceTask). The only safe way to make dbus calls
    is by passing them through the thead in which the loop is being run.
    Note that in typical dbus applications most of dbus calls is done before
    the main loop starts or the calls are performed within the callbacks in
    the main loop. The only way to reproduce this is to use idle callback
    that can be added in a thread-safe manner.
  4. @bboozzoo

    dbus: cleanup loop quitting

    bboozzoo authored
    Releasing a reference to the main loop just after quit may give
    unexpected results as the actual Glib g_main_loop_quit() does not wait
    for the loop to finish. However, the loop may be safely cleaned up after
    run() returns.
  5. @bboozzoo

    dbus: DBusTask.asyncRun() helper

    bboozzoo authored
    Adding DBusTask.asyncRun() helper method for running a callback within
    the context of thread running the main loop (an in fact within the main
    loop). The method should be used to run any GLib-depending
    non-thread-safe code, such as dbus calls.
  6. @bboozzoo
Commits on Mar 30, 2015
  1. Merge pull request #97 from bboozzoo/bboozzoo/dbus-system-bus

    Support for DBus system bus and a couple of test cases
  2. @bboozzoo

    dbus: skip FB303 in demo code if import failed

    bboozzoo authored
    FB303 depends on Thrift. The demo code exits with ImportError if Thrift
    is not available.
  3. @bboozzoo
  4. @bboozzoo
  5. @bboozzoo
  6. @bboozzoo
  7. @bboozzoo

    dbus: skip dbus tests if dbus module cannot be imported

    bboozzoo authored
    DBus support modules are usually provided by host system stack. Skip the
    test if dbus cannot be imported.
  8. @bboozzoo
  9. @bboozzoo

    dbus: support for system bus

    bboozzoo authored
    DBus task can automatically try to obtain a name on a system bus if
    --dbus-system-bus is passed in command line. Optionally one can override
    DBusTask.getBus() method to return the desired dbus.Bus object.
Commits on Mar 27, 2015
Commits on Feb 3, 2015
  1. Fix race condition in unittest

    Fixes #95
  2. Update CHANGES.txt

Commits on Jan 31, 2015
  1. TryLater(..., after=seconds)

    Add support for a new kwarg for TryLater, `after` seconds.  This will
    enable you to, instead of retrying your work immediately, wait `after`
    seconds before trying again.
Something went wrong with that request. Please try again.