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

  • Committer: mattgiuca
  • Date: 2008-04-06 15:04:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:725
The database now stores a cache of all the worksheets and what problems
are contained within each, for the purposes of determining marks.

This cache is automatically written to the database when someone visits a
worksheet in the website. If the worksheet file gets updated (touched), then
the database entries will be refreshed (so it is kept up to date).

At this stage, it isn't used to compute anything, it just gets stored in the
DB and updated.

Also added an "assessable" attribute to the worksheet element in the
worksheet XML, and an "optional" attribute to the exercise element, also in
the worksheet XML. (Both of these are optional, so it won't break existing
worksheets). Both default to False, so by default worksheets are not
assessable, and assessable worksheets have all-mandatory exercises.

users.sql: Added worksheet and worksheet_problem tables to the DB.
common/db.py: Added methods get_worksheet_mtime and create_worksheet.
tutorial/__init__.py:
    present_table_of_contents now gathers up details about all the exercises.
    present_worksheet now gets top level details.
    Added function update_db_worksheet, which checks the time stamps and
    updates the database if necessary.
Filename Latest Rev Last Changed Committer Comment Size
..
doc 1 17 years ago drtomc An initial checkin. Diff
exercises 512 16 years ago stevenbird Renaming of problems to exercises (initial commit) Diff
file-tools 405 16 years ago drtomc Version 0 of the file manipulation tools to allow Diff
home 400 16 years ago stevenbird first commit of homepage at ivle.sourceforge.net, Diff
lib 409 16 years ago mattgiuca Moved www/conf and www/common to a new directory l Diff
platform 1 17 years ago drtomc An initial checkin. Diff
prototypes 9 17 years ago mattgiuca Added prototypes directory. Added ajax file browse Diff
scripts 418 16 years ago mattgiuca Renamed trunk/console to trunk/scripts. We are now Diff
subjects 313 16 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
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
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 500 16 years ago mattgiuca db: get_user and get_users now return User objects 1.2 KB Diff Download File
Makefile 103 17 years ago mattgiuca Fix to Makefile. 238 bytes Diff Download File
File makeuser.py 642 16 years ago dcoles makeuser.py: Needs to import random 3.2 KB Diff Download File
File remakeallusers.py 675 16 years ago mattgiuca remakeallusers: Removed bogus return statement at 2.1 KB Diff Download File
File remakeuser.py 636 16 years ago drtomc remakeuser: use the database, not the password fil 1.9 KB Diff Download File
File setup.py 712 16 years ago mattgiuca setup: Added config option "motd_path" to hold the 48.3 KB Diff Download File