~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
..
diffservice 586 17 years ago dcoles diffservice: Fixed oops in cleaned up code, also c 4.3 KB Diff Download File
fileservice 419 17 years ago mattgiuca cgirequest: Throws an exception if important CGI v 1.4 KB Diff Download File
python-console 691 16 years ago mattgiuca python-console: Removed "locls" dictionary when ca 5.3 KB Diff Download File
serveservice 722 16 years ago dcoles s/serveservice: Show the url rather than the local 3.1 KB Diff Download File
usrmgt-server 684 16 years ago apeel Added an initialisor to usrmgt-server which create 10.4 KB Diff Download File