Changeset 4266


Ignore:
Timestamp:
12 Jun 2009, 09:56:25 (16 years ago)
Author:
uli
Message:

Add 'credits' attribute to courses.

Location:
waeup/branches/ulif-rewrite/src/waeup
Files:
2 edited

Legend:

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

    r4254 r4266  
    138138        )
    139139
     140    credits = schema.Int(
     141        title = u'Credits',
     142        default = 0,
     143        required = True,
     144        )
     145   
    140146    passmark = schema.Int(
    141147        title = u'Passmark',
  • waeup/branches/ulif-rewrite/src/waeup/university/course.py

    r4260 r4266  
    1313                 code=u'NA',
    1414                 level=None,
     15                 credits=0,
    1516                 passmark=40,
    1617                 semester=1, **kw):
     
    1920        self.code = code
    2021        self.level = level
     22        self.credits = credits
    2123        self.passmark = passmark
    2224        self.semester = semester
Note: See TracChangeset for help on using the changeset viewer.