Changeset 2456
- Timestamp:
- 28 Oct 2007, 07:09:46 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 3 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2454 r2456 329 329 330 330 def _getLevels(self): 331 d = {' 000':'N/A'}331 d = {'':'N/A','000':'Pre-Studies'} 332 332 for y in range(100,800,100): 333 333 d['%s' % str(y)] = 'Year %1d (%3d Level)' % (y/100,y) -
WAeUP_SRP/base/skins/cps_custom/logged_in.py
r2447 r2456 203 203 verdict = res[0].verdict 204 204 level = res[0].level 205 has_level = level and not level == '000' 206 has_verdict = verdict and not verdict == 'N/A' 205 has_level = level and not level == '000' 206 has_verdict = verdict and not verdict == 'N/A' 207 207 #set_trace() 208 208 … … 212 212 213 213 ######################################################### 214 214 215 215 # fetch current verdict via getVerdict and level via getLevelFromResultsCosCode 216 216 217 if s_review_state in ('returning','school_fee_paid') and not (has_verdict orhas_level):217 if s_review_state in ('returning','school_fee_paid') and not (has_verdict and has_level): 218 218 if has_results: 219 219 study_course = getattr(student,'study_course') … … 224 224 if not has_level and s_review_state == 'returning': 225 225 lnr = context.getLevelFromResultsCosCode(has_results) 226 dsc['current_level'] = "%d00" % lnr 226 dsc['current_level'] = "%d00" % lnr 227 227 if sc_review_state != 'opened': 228 228 wftool.doActionFor(study_course,'open') -
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2454 r2456 26 26 info['next_transition'] = "pay_school_fee" 27 27 elif review_state == 'returning': 28 info['next_level_id'] = "%s" % (int(level_id) + 100) 29 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 30 if int(session_id) > int(context.getSessionId()[0]) -2: 31 info['next_transition'] = "pay_school_fee" 32 if verdict not in ('A','B',): 33 info['next_level_id'] = level_id 28 if level_id: 29 info['next_level_id'] = "%s" % (int(level_id) + 100) 30 if session_id: 31 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 32 if int(session_id) > int(context.getSessionId()[0]) -2: 33 info['next_transition'] = "pay_school_fee" 34 if verdict not in ('A','B',): 35 info['next_level_id'] = level_id 34 36 35 37 info['next_session_str'] = context.sessions_voc(next_session_id) -
WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py
r2424 r2456 77 77 row = {} 78 78 row['id'] = l 79 #row['title'] = "Level %s" % l80 row['title'] = context.portal_vocabularies.levels_voc[l]79 row['title'] = "Level %s" % l 80 #row['title'] = context.portal_vocabularies.levels_voc[l] 81 81 row['url'] = "%s/%s" % (context.absolute_url(),l) 82 82 items.append(row) -
WAeUP_SRP/base/skins/waeup_utilities/fixReturningSession.py
r2454 r2456 27 27 students = context.portal_url.getPortalObject().campus.students 28 28 #from string import Template 29 def rwrite(s):30 response.setHeader('Content-type','text/html; charset=ISO-8859-15')31 response.write("%s<br>\n\r" % s)29 #def rwrite(s): 30 # response.setHeader('Content-type','text/html; charset=ISO-8859-15') 31 # response.write("%s<br>\n\r" % s) 32 32 33 33 #logger.info('') … … 36 36 brains = aq_students(query) 37 37 total = len(brains) 38 logger.info(' editet %d students with session 06 andstate returning' % total)38 logger.info('started editing %d students with session 06 in state returning' % total) 39 39 count = 0 40 40 commit_after = 100 … … 48 48 study_course_doc = getattr(getattr(students,brain.id),'study_course').getContent() 49 49 study_course_doc.edit(mapping = { "current_session": '05', 50 "current_level": '000'}) 51 rwrite('found %s , %s ,%s, %s' % (brain.id, 50 "current_level": ''}) 51 #rwrite('found %s , %s ,%s, %s' % (brain.id, 52 # study_course_doc.current_session, 53 # brain.matric_no, 54 # brain.name)) 55 logger.info("Session and level of %s (%s, %s, %s) changed from ('%s', '%s') to ('%s', '%s')" % (brain.id, 56 brain.matric_no, 57 brain.name, 58 brain.review_state, 59 brain.session, 60 brain.level, 52 61 study_course_doc.current_session, 53 brain.matric_no,54 brain.name))62 study_course_doc.current_level, 63 )) 55 64 except: 56 rwrite('>>>> not found %s study_course' % (brain.id)) 65 #rwrite('>>>> not found %s study_course' % (brain.id)) 66 pass 67 logger.info('finished editing %d students with session 06 in state returning' % total) 57 68 69 return -
WAeUP_SRP/fceokene/profiles/default/students_catalog.xml
r2069 r2456 58 58 <indexed_attr value="course"/> 59 59 </index> 60 <index name="registered_courses" meta_type="KeywordIndex"> 61 <indexed_attr value="registered_courses"/> 62 </index> 60 63 61 <column value="id"/> 64 62 <column value="review_state"/> … … 70 68 <column value="department"/> 71 69 <column value="course"/> 72 <column value="registered_courses"/>73 70 <column value="lga"/> 74 71 <column value="perm_address"/> -
WAeUP_SRP/fceokene/profiles/default/vocabularies.xml
r2374 r2456 16 16 <object name="get_departments_voc" meta_type="CPS Method Vocabulary"/> 17 17 <object name="get_faculties_voc" meta_type="CPS Method Vocabulary"/> 18 <object name="levels_voc" meta_type="CPS Method Vocabulary"/>19 18 <object name="groups_voc" meta_type="CPS Method Vocabulary"/> 20 19 <object name="waeup_bed_letters" meta_type="CPS Vocabulary"/> -
WAeUP_SRP/fceokene/profiles/default/vocabularies/levels.xml
r1989 r2456 6 6 <property name="description"></property> 7 7 <property name="acl_write_roles">Manager</property> 8 <item key="000" msgid="">N/A</item> 8 <item key="" msgid="">N/A</item> 9 <item key="000" msgid="">Pre-Studies</item> 9 10 <item key="100" msgid="">Year 1 (100 Level)</item> 10 11 <item key="200" msgid="">Year 2 (200 Level)</item>
Note: See TracChangeset for help on using the changeset viewer.