731
|
|
|
dcoles |
16 years ago
|
|
|
730
|
|
|
mattgiuca |
16 years ago
|
|
|
729
|
|
|
dcoles |
16 years ago
|
|
|
728
|
|
|
dcoles |
16 years ago
|
|
|
727
|
|
|
dcoles |
16 years ago
|
|
|
726
|
|
|
dcoles |
16 years ago
|
|
|
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.
|
mattgiuca |
16 years ago
|
|
|
724
|
|
|
dcoles |
16 years ago
|
|
|
723
|
|
|
dcoles |
16 years ago
|
|
|
722
|
|
|
dcoles |
16 years ago
|
|
|
721
|
|
|
dcoles |
16 years ago
|
|
|
720
|
|
|
dcoles |
16 years ago
|
|
|
719
|
|
|
mattgiuca |
16 years ago
|
|
|
718
|
|
|
mattgiuca |
16 years ago
|
|
|
717
|
|
|
mattgiuca |
16 years ago
|
|
|
716
|
|
|
mattgiuca |
16 years ago
|
|
|
715
|
|
|
mattgiuca |
16 years ago
|
|
|
714
|
|
|
dcoles |
16 years ago
|
|
|
713
|
|
|
dcoles |
16 years ago
|
|
|
712
|
|
|
mattgiuca |
16 years ago
|
|
|