- Timestamp:
- 5 Jul 2007, 09:10:38 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1971 r1986 61 61 def manage_catalogClear(self, REQUEST=None, RESPONSE=None, URL1=None): 62 62 """ clears the whole enchilada """ 63 63 64 64 #if REQUEST and RESPONSE: 65 65 # RESPONSE.redirect( … … 357 357 digit = int(doc.jamb_reg_no[0]) 358 358 except: 359 return " xx"359 return "-1" 360 360 if digit < 8: 361 361 return "0%c" % doc.jamb_reg_no[0] 362 362 return "9%c" % doc.jamb_reg_no[0] 363 364 def get_from_doc_session(self,doc):365 "return the students session"366 if doc is None:367 return None368 return getattr(doc,'current_session',None)369 363 370 364 def get_from_doc_course(self,doc): -
WAeUP_SRP/trunk/Widgets.py
r1915 r1986 177 177 178 178 class WAeUPStudyModeWidget(CPSSelectWidget): ###( 179 """WAeUP StudyMode widget."""179 """WAeUP StudyMode Widget.""" 180 180 meta_type = 'WAeUP StudyMode Widget' 181 181 vocabulary = 'entry_modes' … … 246 246 247 247 class WAeUPSessionWidget(CPSSelectWidget): ###( 248 """WAeUP Session widget."""248 """WAeUP Session Widget.""" 249 249 meta_type = 'WAeUP Session Widget' 250 250 251 251 def _getSessions(self): 252 252 current_year = DateTime().year() 253 d = {' xx': 'unknown'}253 d = {'-1': 'N/A'} 254 254 for y in range(current_year - 9,current_year + 1): 255 255 d['%s' % str(y)[-2:]] = '%4d/%4d' % (y,y+1) … … 295 295 vocabulary_items = sessions.items() 296 296 if self.sorted: 297 vocabulary_items.sort(key=operator.itemgetter( 1))297 vocabulary_items.sort(key=operator.itemgetter(0)) 298 298 for k, v in vocabulary_items: 299 299 kw = {'value': k, 'contents': v} … … 321 321 322 322 def _getLevels(self): 323 d = {' 999':'unknown'}323 d = {'000':'N/A'} 324 324 for y in range(100,800,100): 325 325 d['%s' % str(y)] = 'Year %1d (%3d Level)' % (y/100,y) … … 363 363 vocabulary_items = levels.items() 364 364 if self.sorted: 365 vocabulary_items.sort(key=operator.itemgetter( 1))365 vocabulary_items.sort(key=operator.itemgetter(0)) 366 366 for k, v in vocabulary_items: 367 367 kw = {'value': k, 'contents': v} … … 385 385 386 386 class WAeUPVerdictWidget(CPSSelectWidget): ###( 387 """WAeUP Verdict widget."""387 """WAeUP Verdict Widget.""" 388 388 meta_type = 'WAeUP Verdict Widget' 389 389 -
WAeUP_SRP/trunk/profiles/default/layouts/import_student.xml
r1958 r1986 164 164 <property name="hidden_layout_modes"/> 165 165 <property name="hidden_readonly_layout_modes"/> 166 <property name="vocabulary"> sessions</property>166 <property name="vocabulary">unset</property> 167 167 <property name="sorted">True</property> 168 168 </widget> … … 179 179 <property name="hidden_layout_modes"/> 180 180 <property name="hidden_readonly_layout_modes"/> 181 <property name="vocabulary"> courselevel</property>181 <property name="vocabulary">unset</property> 182 182 <property name="sorted">True</property> 183 183 </widget> … … 195 195 <property name="hidden_readonly_layout_modes"/> 196 196 <property name="vocabulary">verdicts</property> 197 <property name="sorted">True</property> 197 198 </widget> 198 199 <widget name="entry_session" meta_type="WAeUP Session Widget"> … … 206 207 <property name="hidden_layout_modes"/> 207 208 <property name="hidden_readonly_layout_modes"/> 208 <property name="vocabulary"> sessions</property>209 <property name="vocabulary">unset</property> 209 210 <property name="sorted">True</property> 210 211 </widget> -
WAeUP_SRP/trunk/profiles/default/vocabularies/courselevel.xml
r1736 r1986 6 6 <property name="description"></property> 7 7 <property name="acl_write_roles">Manager</property> 8 <item key=" unknown" msgid="">unknown</item>8 <item key="000" msgid="">N/A</item> 9 9 <item key="100" msgid="">Year 1 (100 Level)</item> 10 10 <item key="200" msgid="">Year 2 (200 Level)</item> -
WAeUP_SRP/trunk/profiles/default/vocabularies/entry_modes.xml
r1736 r1986 6 6 <property name="description"></property> 7 7 <property name="acl_write_roles">Manager</property> 8 <item key="unknown" msgid=""> unknown</item>8 <item key="unknown" msgid="">N/A</item> 9 9 <item key="ume_ft" msgid="">UME Full Time</item> 10 10 <item key="de_ft" msgid="">Direct Entry Full Time</item> -
WAeUP_SRP/trunk/profiles/default/vocabularies/verdicts.xml
r1769 r1986 6 6 <property name="description"></property> 7 7 <property name="acl_write_roles">Manager</property> 8 <item key="N/A" msgid="">N/A</item> 8 9 <item key="A" msgid="">successful student</item> 9 10 <item key="B" msgid="">student with carryover courses</item> … … 18 19 <item key="K" msgid="">unregistered student</item> 19 20 <item key="L" msgid="">referred student</item> 20 <item key="N/A" msgid="">N/A</item>21 21 </object> -
WAeUP_SRP/trunk/skins/waeup_default/sessions_voc.py
r1758 r1986 6 6 """ 7 7 if key is None: 8 l = [('xx','unknown')] 8 # not used for WAeUPSessionWidget, only for SelectWidget 9 l = [('-1','N/A')] 9 10 for y in range(1998,2008): 10 11 l.append( ('%s' % str(y)[-2:],'%4d/%4d' % (y,y+1))) … … 14 15 y = int(key) 15 16 except: 16 return 'unknown' 17 return 'N/A' 18 if y == -1: 19 return 'N/A' 17 20 if y < 90: 18 21 cent = 2000 -
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1856 r1986 34 34 current_level = student.level 35 35 in_progress = request.get('in_progress','not started') 36 level_created = request.get('level_created','xxx')36 #level_created = request.get('level_created','xxx') 37 37 create_level = request.get('create_level',None) 38 38 … … 71 71 l = [] 72 72 carry_overs = results 73 73 74 74 # carry_overs for probation students: yes or not, that is the question 75 75 #if student.verdict == "C": # on probation
Note: See TracChangeset for help on using the changeset viewer.