Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-31 Thread Barry Warsaw
On May 30, 2012, at 05:35 PM, Jasper St. Pierre wrote: >> regularly.  For example, as of 1.0, dbus-python supports Python 3.  There >> are also legitimate reasons not to want to use GDBus. > >What would those be? A simple, pure-Python server for example. You can do that with dbus-python and mini

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread bino oetomo
On 05/31/2012 09:43 AM, Daniel Bryan wrote: > Here's an example based on an application that I have in production. > It's a bit amateurish - and I'm going to mangle the language - but you > should get the idea. > > This is an extract from the main script: > > === > Class Handler(Resource): >

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread Daniel Bryan
Here's an example based on an application that I have in production. It's a bit amateurish - and I'm going to mangle the language - but you should get the idea. This is an extract from the main script: === Class Handler(Resource): pass # application code goes here - HTTP request handling,

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread bino oetomo
Dear All c/q Itamar, I really appreciate your enlightment On 05/29/2012 09:14 PM, Itamar Turner-Trauring wrote: > > Applications are just a *deployment* method, providing startup and > shutdown notification; they're not really relevant to how you interact > with dbus. See > http://twistedmatrix.co

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread Jasper St. Pierre
On Wed, May 30, 2012 at 5:24 PM, Barry Warsaw wrote: > On May 28, 2012, at 11:22 PM, Jasper St. Pierre wrote: > >>Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated. >>The recommended solution is to use GDBus. > > Is it?  dbus-python seems like a healthy project, getting new rel

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread Barry Warsaw
On May 28, 2012, at 11:22 PM, Jasper St. Pierre wrote: >Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated. >The recommended solution is to use GDBus. Is it? dbus-python seems like a healthy project, getting new releases fairly regularly. For example, as of 1.0, dbus-python s

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-29 Thread Itamar Turner-Trauring
On 05/28/2012 11:03 PM, bino oetomo wrote: > Dear all ... > > I need my twistd script to also 'listen' to dbus. > The only example that I found so far is : > http://twistedmatrix.com/trac/attachment/ticket/1352/dbus-twisted.py > Buit that example not using some thing like : > application = service.

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-28 Thread Jasper St. Pierre
All you should need to do is install the glib reactor. Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated. The recommended solution is to use GDBus. See http://developer.gnome.org/gio/stable/ch30.html On Mon, May 28, 2012 at 11:03 PM, bino oetomo wrote: > Dear all ... > > I ne

[Twisted-Python] question : dbus for twistd application framework

2012-05-28 Thread bino oetomo
Dear all ... I need my twistd script to also 'listen' to dbus. The only example that I found so far is : http://twistedmatrix.com/trac/attachment/ticket/1352/dbus-twisted.py Buit that example not using some thing like : application = service.Application("MyApp") Is there any example of dbus impl