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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: Nick Chadwick
  • Date: 2009-02-19 05:47:56 UTC
  • mto: (1099.1.180 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: chadnickbok@gmail.com-20090219054756-v984vmc7kheiq6xy
Updated the tutorial service, to now allow users to edit worksheets
online.

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
    # Note: Table "problem" is called "Exercise" in the Object layer, since
400
400
    # it's called that everywhere else.
401
401
    __storm_table__ = "problem"
402
 
#TODO: Add in a field for the user-friendly identifier
403
402
    id = Unicode(primary=True, name="identifier")
404
403
    name = Unicode()
405
404
    description = Unicode()
434
433
    assessable = Bool()
435
434
    data = Unicode()
436
435
    order_no = Int()
 
436
    rst = Bool()
437
437
 
438
438
    attempts = ReferenceSet(id, "ExerciseAttempt.worksheetid")
439
439
    offering = Reference(offering_id, 'Offering.id')
487
487
    exercise_id = Unicode(name="problemid")
488
488
    exercise = Reference(exercise_id, Exercise.id)
489
489
    optional = Bool()
 
490
    active = Bool()
 
491
    seq_no = Int()
490
492
 
491
493
    __init__ = _kwarg_init
492
494