~azzar1/unity/add-show-desktop-key

  • Committer: wagrant
  • Date: 2008-12-20 03:46:56 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1060
Make IVLE work fine in Firefox 3.1 (ie. Gecko/XULRunner 1.9.1). Gecko 1.9.1 has
a built-in JSON object, so our json2.js isn't used, and compatibility problems
arise. The only one significant to us is that Gecko's doesn't support having
a primitive as the root object. Unfortunately we use that sort of thing in a
few places, so IVLE ends up pretty much broken.

A few adjustments were needed both client- and server-side for proto changes:

 - consoleservice and the JS interacting with it now deal with the key returned
   by start_server in a dict like {'key': ...}.
 - tutorialservice and interacting JS deal with code returned by getattempt in
   a dict like {'code': ...}.


The JS repr() implementation used JSON.stringify on the given object, and was
used only with primitive objects in order to create function calls. This needed
to be eliminated for compatibility with the new Gecko, so these call
constructions were replaced with better events:

 - listing.js constructed events for generated file listings by repr()ing some
   strings. That is foul, so we instead use DOM operations from 'this' in a
   somewhat nicer event handler.
 - tutorial.js previously created save_exercise() call strings by repr()ing
   lots of stuff. That was really bad, and broke like the rest. I replaced it
   with something that's still bad, but not quite as awful - grabbing the call
   string from the save button. This should be fixed at some point.
 - console.js had some strange Firebug logging stuff which used repr(). I
   removed it, as it shouldn't have been in released code in the first place.

repr() itself was removed after all references were.
   
Filename Latest Rev Last Changed Committer Comment Size
..
doc 1 17 years ago drtomc An initial checkin. Diff
exercises 512 17 years ago stevenbird Renaming of problems to exercises (initial commit) Diff
home 400 17 years ago stevenbird first commit of homepage at ivle.sourceforge.net, Diff
lib 409 17 years ago mattgiuca Moved www/conf and www/common to a new directory l Diff
prototypes 9 17 years ago mattgiuca Added prototypes directory. Added ajax file browse Diff
scripts 418 17 years ago mattgiuca Renamed trunk/console to trunk/scripts. We are now Diff
setup 803 16 years ago dcoles Setup: Modularised setup.py so it is now no longer Diff
subjects 313 17 years ago mattgiuca test/test_framework: Updated examples, a bit of be Diff
test 201 17 years ago mattgiuca Added "test" directory. Added make_date_test.py, a Diff
timount 813 16 years ago William Grant Merge jails-redux branch. We now use aufs rather t Diff
trampoline 144 17 years ago mattgiuca Trunk, and all subdirectories with Python files: Diff
userdb 25 17 years ago drtomc A bit more work on the userdb stuff. Diff
www 144 17 years ago mattgiuca Trunk, and all subdirectories with Python files: Diff
File buildjail.sh 988 16 years ago wagrant buildjail: Install python-nltk-data (it's now in m 3 KB Diff Download File
File enrol.py 1000 16 years ago wagrant Add two scripts (showenrolment.py and enrol.py) to 1.2 KB Diff Download File
File enrolallusers.py 877 16 years ago mattgiuca pulldown_subj/__init__.py: Added "enrol_user" func 2.9 KB Diff Download File
insert_exercise.py 659 16 years ago drtomc Add a little script for stuffing exercises into th 759 bytes Diff Download File
LICENSE.txt 7 17 years ago stevenbird GPL license 17.5 KB Diff Download File
File listusers.py 754 16 years ago mattgiuca listusers.py: Added options processing (now accept 1.9 KB Diff Download File
Makefile 813 16 years ago William Grant Merge jails-redux branch. We now use aufs rather t 324 bytes Diff Download File
File makeuser.py 971 16 years ago wagrant makeuser: Clean up unused imports and a strange sy 2.8 KB Diff Download File
File marks.py 736 16 years ago mattgiuca Added new script "marks.py" which computes the mar 6 KB Diff Download File
File mountallusers.py 813 16 years ago William Grant Merge jails-redux branch. We now use aufs rather t 3 KB Diff Download File
File remakeuser.py 914 16 years ago wagrant remakeuser.py: Destroy! remakeallusers.py: Rename 2.6 KB Diff Download File
File setup.py 1050 16 years ago wagrant setup: Don't give possible options in the top-leve 2.9 KB Diff Download File
File showenrolment.py 1000 16 years ago wagrant Add two scripts (showenrolment.py and enrol.py) to 1.6 KB Diff Download File