Changeset 6744 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 13 Sep 2011, 09:43:13 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6725 r6744 7 7 from waeup.sirp.students.vocabularies import ( 8 8 year_range, lgas_vocab, CertificateSource, GenderSource, 9 entry_session_vocab, verdicts, StudyLevelSource,9 academic_sessions_vocab, verdicts, StudyLevelSource, 10 10 ) 11 11 … … 130 130 current_session = schema.Choice( 131 131 title = u'Current Session', 132 source = entry_session_vocab,132 source = academic_sessions_vocab, 133 133 default = None, 134 134 required = True, -
main/waeup.sirp/trunk/src/waeup/sirp/students/vocabularies.py
r6742 r6744 14 14 return range(curr_year - 2, curr_year + 5) 15 15 16 def entry_sessions():16 def academic_sessions(): 17 17 curr_year = datetime.now().year 18 18 year_range = range(curr_year - 10, curr_year + 2) 19 19 return [('%s/%s' % (year,year+1), year) for year in year_range] 20 20 21 entry_session_vocab = SimpleWAeUPVocabulary(*entry_sessions())21 academic_sessions_vocab = SimpleWAeUPVocabulary(*academic_sessions()) 22 22 23 23 lgas_vocab = SimpleWAeUPVocabulary(
Note: See TracChangeset for help on using the changeset viewer.