On Wed, Mar 5, 2014 at 6:44 PM, Georges Khaznadar <georges.khazna...@free.fr > wrote:
> Hello Martin, Zygmunt, > > @Martin: > I read your e-mail, and began to search whether there were already > python bindings for udisks2 around. I believe that we should rather use > free-licensed existing material before inventing new implementations of > the wheel. > > I found Zygmunt Krynicki's work at > http://people.canonical.com/~zyga/udisks2.py > > I found quite the same file as part of the debian package > python3-checkbox-support: > > /usr/lib/python3/dist-packages/checkbox_support/dbus/udisks2.py > > So, which way would you approve? > > 1- embed a new copy of Zygmunt's udisks2.py in my package scolasync, > 2- or create a small python3 package with Zygmunt's work, create a > dependency from scolasync to python3-udisks2, and file a bugreport > against python3-checkbox-support, to ask its author to depend on > python3-udisks2, > 3- or some other approach? > > Hey. As you found out that work is now a part of lp:checkbox It has some known issues, at the time I wasn't sure how to properly listen to all the signals. I'm not sure if packaging and shipping that would be appropriate at this time though (because of those issues). We're not quite exporting all of the DBus APIs so applicability would really depend on your use case. As Martin noted, you can also use gobject introspection to use the native dbus API from python (though I haven't used it that much so I cannot comment on how easy that is to work with). I would encourage you to join us on IRC on #checkbox (on freenode) and work on udisks2.py there. We have a lot of interesting python DBus code (specifically for writing servers, much better than the stock python-dbus code IMHO). We can talk and figure out what to do next. Best regards Zygmunt Krynicki