Changeset 4509 for waeup


Ignore:
Timestamp:
31 Jul 2009, 23:29:50 (15 years ago)
Author:
uli
Message:

Finetune course schema.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/interfaces.py

    r4506 r4509  
    136136        )
    137137
    138     level = schema.Int(
     138    level = schema.TextLine(
    139139        title = u'Level',
    140         default = 100,
     140        default = u'100',
    141141        required = False,
    142142        )
     
    145145        title = u'Credits',
    146146        default = 0,
    147         required = True,
     147        required = False,
    148148        )
    149149   
     
    151151        title = u'Passmark',
    152152        default = 40,
    153         required = True,
     153        required = False,
    154154        )
    155155
    156156    semester = schema.Choice(
    157157        title = u'Semester/Term',
    158         default = 2,
     158        default = 0,
    159159        vocabulary = SimpleVocabulary.fromItems([
    160                 ('First Semester', 1),('Second Semester', 2),
    161                 ('Combined', 3)]),
    162         #values = [],
     160                ('N/A', 0), ('First Semester', 1),
     161                ('Second Semester', 2), ('Combined', 3),]),
    163162        required = True,
    164163        )
Note: See TracChangeset for help on using the changeset viewer.