Medialib

Lazy Loading widget and Views

I got the Views framework implemented a few days ago. Basically, it makes for a nice way to create new Medialib views by just dropping in a few files. Right now, the only thing missing is dropping in a css file, that should be fairly issue. On the python end, it's just a class with a common method that returns the correct data back. On the javascript end it's a similar process, an object constructor gets called which acts as a class for the view and does all the javascript work. The interesting part is the loader, which adds the script tag to the HEAD DOM Node. This is nice since it means we only load the javascript file if we need it. I've run into a weird problem though, for some reason if I do it this way, this file gets cached and no form of reloading will refetch the file. This is good from a user prespective, reduced downloading, but from a development prespective it's really problematic since to make changes i have to clear my cache.

alexbl – Sat, 2006 – 06 – 24 09:31

PropDict for Medialib View!

So. I've converted the SongList of the Medialib view to use PropDict! There are still a few lingering bugs which I need to pop, and some more optimization would be nice. This of course uses the /mediainfo controller which means that we get temporary entries and then we swap them out when the mediainfo request calls back.

I also started on the quest to normalize my CSS namespace, which is now mostly done. This is a nice thing to have because it starts to make sense why things are where they are and the likes. It gets kind of confusing trying to figure out what you're swapping out when the CSS ids are ambigious things like ``entry.'' So that's fixed mostly now, with the occasional commit to chase a mistake or a forgotten id.

alexbl – Mon, 2006 – 05 – 29 05:29
Syndicate content