Changeset 1866
- Timestamp:
- 8 Jun 2007, 09:31:05 (17 years ago)
- 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 30 30 31 31 if 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')) 33 33 return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 34 34 -
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r1845 r1866 23 23 def set_trace(): 24 24 pass 25 26 25 26 27 27 from Products.AdvancedQuery import Eq, Between, Le,In 28 28 try: … … 93 93 credits_total = 0 94 94 for id,obj in context.objectItems(): 95 try:96 credit = int(obj.getContent().credits)97 except ValueError:98 credit = 399 credits_total += credit95 #try: 96 # credit = int(obj.getContent().credits) 97 #except ValueError: 98 # credit = 3 99 #credits_total += credit 100 100 if id.endswith('_co'): 101 101 d = context.getCourseInfo(id[:-3]) … … 108 108 coe = obj.getContent().core_or_elective 109 109 d['coe'] = 'Core' 110 try: 111 credits_total += int(d['credits']) 112 except ValueError: 113 credits_total += 0 110 114 if not coe: 111 115 d['coe'] = 'Elective'
Note: See TracChangeset for help on using the changeset viewer.