Make dmedia browser talk to CouchDB

Bug #711170 reported by Jason Gerard DeRose
6
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
Revision history for this message
Jason Gerard DeRose (jderose) wrote :

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

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Ah, if anyone wants to play with the browser UI, here is a sample database - http://cdn.novacut.com/dmedia.couch.bz2

After you download it, just:

bunzip2 dmedia.couch.bz2
cp dmedia.couch ~/.local/share/desktop-couch/

Then grab the latest code from trunk:

bzr branch lp:dmedia
cd dmedia
./dmedia-gtk

Or:

./dmedia-gtk --browser to launch in your default browser.

Changed in dmedia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.