~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-24 03:32:59 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090224033259-m518nuqp6w9f23ax
Added a new page to display exercises. This will then be modified to
actually edit exercises.

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
 
278
278
    worksheets = ReferenceSet(id, 
279
279
        'Worksheet.offering_id', 
280
 
        order_by="Worksheet.seq_no"
 
280
        order_by="seq_no"
281
281
    )
282
282
 
283
283
    __init__ = _kwarg_init
425
425
        'Worksheet.id'
426
426
    )
427
427
    
428
 
    test_suites = ReferenceSet(id, 'TestSuite.exercise_id')
 
428
    test_suites = ReferenceSet(id, 
 
429
        'TestSuite.exercise_id',
 
430
        order_by='seq_no')
429
431
 
430
432
    __init__ = _kwarg_init
431
433
 
576
578
    function = Unicode()
577
579
    stdin = Unicode()
578
580
    exercise = Reference(exercise_id, Exercise.id)
579
 
    test_cases = ReferenceSet(suiteid, 'TestCase.suiteid')
580
 
    variables = ReferenceSet(suiteid, 'TestSuiteVar.suiteid')
 
581
    test_cases = ReferenceSet(suiteid, 'TestCase.suiteid', order_by="seq_no")
 
582
    variables = ReferenceSet(suiteid, 'TestSuiteVar.suiteid', order_by='arg_no')
581
583
 
582
584
class TestCase(Storm):
583
585
    """A TestCase is a member of a TestSuite.