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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: Nick Chadwick
  • Date: 2009-03-09 00:15:21 UTC
  • mfrom: (1099.6.4 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090309001521-dffcygyuyvs2cap0
finished the exercise-ui. It is now ready to be merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
415
415
    include = Unicode()
416
416
    num_rows = Int()
417
417
 
 
418
    worksheet_exercises =  ReferenceSet(id,
 
419
        'WorksheetExercise.exercise_id')
 
420
 
418
421
    worksheets = ReferenceSet(id,
419
422
        'WorksheetExercise.exercise_id',
420
423
        'WorksheetExercise.worksheet_id',
437
440
                perms.add('edit')
438
441
                perms.add('view')
439
442
        return perms
 
443
    
 
444
    def get_description(self):
 
445
        return "<div class='exercise_description'>" + \
 
446
                rst(self.description) + "</div>"
440
447
 
441
448
class Worksheet(Storm):
442
449
    __storm_table__ = "worksheet"