Ignore:
Timestamp:
26 Aug 2006, 14:47:10 (18 years ago)
Author:
joachim
Message:

added columns for semester credits passmark to courseslisting and
core_or_elective to certificate courses semester listing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py

    r361 r430  
    220220    if doc is None:
    221221        doc = proxy.getContent()
     222    if doc.portal_type == 'Course':
     223        info['credits'] = doc.credits
     224        info['semester'] = doc.semester
     225        info['passmark'] = doc.passmark
     226    elif doc.portal_type == 'CertificateCourse':
     227        core = 'core'
     228        if not doc.core_or_elective:
     229            core = elective
     230        info['core_or_elective'] = core
    222231    info['time'] = doc.modified()
    223232    info['doc'] = doc
     
    233242        except:
    234243            size = 0
    235 
    236244        if size and size < 1024:
    237245            info['size'] = '1 K'
Note: See TracChangeset for help on using the changeset viewer.