Make dmedia browser talk to CouchDB
Bug #711170 reported by
Jason Gerard DeRose
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Fix Released
|
High
|
Jason Gerard DeRose |
Bug Description
The great browser design that James Raymond did is now served from CouchDB (after crossing the oauth hurdle in lp:677697), but it's still using static data. We need to it making AJAX requests to CouchDB, which will be the first step in refining the foundations used for building HTML5 UI on top of dmedia.
Next step (will open another bug) will be to make it easy for apps not in dmedia source tree to do the same. I'm looking at you, novacut-player.
Changed in dmedia: | |
status: | In Progress → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Okay, it's not exactly useful as of yet, but the browser is making AJAX requests to CouchDB, including from embedded WebKit.
Only downside is to get this working I had to add a dependency on gir1.2-webkit-1.0, which means it can only be used under Natty (unless someone wants to backport gir1.2-webkit-1.0 to Maverick, even Lucid).
Hit the usual problem that JavaScript is a PITA to unit-test, but I'm scheming on that front. I really want to be able to run JS unit tests headless in embedded WebKit and have the results reported through Python unittest... relay results though AXAJ requests to a WSGI app that collects results and reports through unittest.
I'm also considering going back to MooTools, which I'll have to talk to James about. jQuery, IHMO, seems to be quite difficult to read/maintain as the complexity grows. Whereas in my experience, you can make a quite complex app with MooTools and still have code that is highly readable, maintainable, and modular.
Ramble...