Changeset 6744 for main/waeup.sirp/trunk/src
- Timestamp:
- 13 Sep 2011, 09:43:13 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6648 r6744 443 443 readonly = True, 444 444 ) 445 # entry_session is inherited from the container446 #entry_session = schema.Choice(447 # source = entry_session_vocab,448 # title = u'Entry Session',449 # required = False,450 # readonly = True451 # )452 445 notice = schema.Text( 453 446 title = u'Notice', -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py
r6648 r6744 9 9 from waeup.sirp.students.lgas import LGAS 10 10 from waeup.sirp.students.vocabularies import ( 11 entry_session_vocab,CertificateSource, GenderSource)11 CertificateSource, GenderSource) 12 12 13 13 #: Types of applications we support. -
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.