Changeset 6089 for main/waeup.sirp/trunk
- Timestamp:
- 15 May 2011, 00:58:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r6087 r6089 13 13 14 14 inst_types = SimpleWAeUPVocabulary( 15 16 17 18 19 20 21 22 23 24 15 ('Faculty of','faculty'), 16 ('Department of','department'), 17 ('School of','school_of'), 18 ('School for','school_for'), 19 ('Institute of','institute'), 20 ('Office for','office'), 21 ('Centre for','centre'), 22 ('College','college'), 23 ) 24 25 25 course_levels = SimpleWAeUPVocabulary( 26 26 ('100 (Year 1)',100), … … 33 33 ('800 (Year 8)',800), 34 34 ) 35 35 36 36 semester = SimpleWAeUPVocabulary( 37 ('N/A', 0), 37 ('N/A', 0), 38 38 ('First Semester', 1), 39 ('Second Semester', 2), 39 ('Second Semester', 2), 40 40 ('Combined', 3) 41 ) 42 41 ) 42 43 43 application_category = SimpleWAeUPVocabulary( 44 44 ('--',''), … … 48 48 ('Postgraduate','pg'), 49 49 ) 50 50 51 51 study_mode = SimpleWAeUPVocabulary( 52 52 ('UME Full Time','ume_ft'), … … 58 58 ('Postgraduate Full Time','pg_ft'), 59 59 ('Postgraduate Part Time','pg_pt'), 60 ) 61 60 ) 61 62 62 63 63 class CourseSource(BasicSourceFactory): … … 71 71 def getToken(self, value): 72 72 return value.code 73 73 74 74 def getTitle(self, value): 75 75 return "%s - %s" % (value.code, value.title[:64]) 76 77 78 76 77 78 79 79 class FutureYearsSource(BasicSourceFactory): 80 """81 """82 80 def getValues(self): 83 81 cy = datetime.datetime.now().year 84 return [x for x in range(cy-2,cy+5)] 82 return [x for x in range(cy-2,cy+5)] 85 83 86 84 def getToken(self, value): … … 88 86 89 87 def getTitle(self, value): 90 return str(value) 91 92 88 return str(value)
Note: See TracChangeset for help on using the changeset viewer.