5

I've found this, but I'm trying not to borrow code for my application.

The reasoning is that if you're writing a local HTML5 App, you may want to call some DBus api from javascript(like ubuntuone for example).

5
  • Why do you need a REST API? Why not use the standard DBus API?
    – JanC
    Jun 17 '12 at 12:28
  • Yeah, I'm not sure why a desktop application would need this, the python-dbus API works well enough
    – mhall119
    Jun 17 '12 at 15:07
  • 2
    HTML5 local application so you could talk to DBus from JS Jun 17 '12 at 15:35
  • Does this have to run in a browser, or in a simple Gtk/Webkit app?
    – JanC
    Jun 17 '12 at 19:48
  • Ideally it would run in a browser, but Gtk/Webkit would be sufficient. Jun 17 '12 at 19:48
5

My recommendation would be to use the HTML5 Quickly template. It is not yet released, and I will ask mhall to post where the code is, but the template combines together the power of HTML5 and Python.

This means you can talk to DBUS via Python, and trigger those methods using HTML5, which it seems you want to do.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.