Hi Tony, list, haven't had a chance to play much with the code. But I applied your files on top of the latest 1.9, and tweaked lib/javascript.php in a way that would be compatible with merging it upstream.
It's here http://dev.laptop.org/git?p=users/martin/moodle.git;a=commitdiff;h=mdl19-offlinetony if you clone it, you'll get the whole moodle history -- that's 200MB -- the good of it is that you get all the history in case you need to merge or understand the background history of a file. The bad is that if you are on a very slow link, the initial clone is very slow and painful. Some notes after reading your README, and a bit of the code... The plan overall looks sensible, and I am happy it's working as a proof-of-concept. Lots of things need polish from what I see :-) The main one in terms of GG glie is that I guess you're using Greasemonkey as a temporary workaround until you find out a pure GG-based way to drive this (as Google Reader does)? >From a UI POV, you can probably do the download-done announcement without a js alert - a status graph on screen switching with css between a "spinner" while it's downloading and a 'done' icon will be nicer. I assume you're deferring prettyness until more is working on the backend, anyway :-) In terms of working nicely with moodle, there are several tricks that you'll need... - Moodle has *very* good DB access machinery -- at no extra cost! Use it :-) - PHP can write JSON stuff too, and the XS will include the PHP JSON lib. Discounted price, just so that you don't have to hang on to buildmanifest.py -- and actually buildmanifest sounds like something you should be doing inside of the course-format plugin and in mod/resource ( lib.php or locallib.php in mod/resource is probably the right place to do it...). - With the manifest creation moved to something dynamic, you can then put moodledata in a safe place ;-) if you think you can move in this direction, then we can probably give shape to an offline moodle that works very well for our purposes and can be offered upstream -- which is my end goal anyway! cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff _______________________________________________ Server-devel mailing list [EMAIL PROTECTED] http://lists.laptop.org/listinfo/server-devel