Changeset 1866


Ignore:
Timestamp:
8 Jun 2007, 09:31:05 (17 years ago)
Author:
Henrik Bettermann
Message:

fix ticket #200 (in custom)

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/application_edit.py

    r1571 r1866  
    3030
    3131if info is None:
    32     logger.info('Anonymous user tried to access %s"' % REQUEST.get('URL0'))
     32    logger.info('Anonymous user tried to access %s' % REQUEST.get('URL0'))
    3333    return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    3434
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py

    r1845 r1866  
    2323    def set_trace():
    2424        pass
    25        
    26        
     25
     26
    2727from Products.AdvancedQuery import Eq, Between, Le,In
    2828try:
     
    9393credits_total = 0
    9494for id,obj in context.objectItems():
    95     try:
    96         credit = int(obj.getContent().credits)
    97     except ValueError:
    98         credit = 3
    99     credits_total += credit
     95    #try:
     96    #    credit = int(obj.getContent().credits)
     97    #except ValueError:
     98    #    credit = 3
     99    #credits_total += credit
    100100    if id.endswith('_co'):
    101101        d = context.getCourseInfo(id[:-3])
     
    108108        coe = obj.getContent().core_or_elective
    109109        d['coe'] = 'Core'
     110        try:
     111            credits_total += int(d['credits'])
     112        except ValueError:
     113            credits_total += 0
    110114        if not coe:
    111115            d['coe'] = 'Elective'
Note: See TracChangeset for help on using the changeset viewer.