Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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).

share|improve this question
    
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
1  
HTML5 local application so you could talk to DBus from JS –  hbdgaf 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. –  hbdgaf Jun 17 '12 at 19:48
add comment

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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