Changeset 6744


Ignore:
Timestamp:
13 Sep 2011, 09:43:13 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove trash.

Rename entry_session_vocab and other academic session related things because of the ambiguity of the term 'session'. We should always use one of the following terms: entry session, current session or academic session.

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  
    443443        readonly = True,
    444444        )
    445     # entry_session is inherited from the container
    446     #entry_session = schema.Choice(
    447     #    source = entry_session_vocab,
    448     #    title = u'Entry Session',
    449     #    required = False,
    450     #    readonly = True
    451     #    )
    452445    notice = schema.Text(
    453446        title = u'Notice',
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py

    r6648 r6744  
    99from waeup.sirp.students.lgas import LGAS
    1010from waeup.sirp.students.vocabularies import (
    11     entry_session_vocab, CertificateSource, GenderSource)
     11    CertificateSource, GenderSource)
    1212
    1313#: Types of applications we support.
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r6725 r6744  
    77from waeup.sirp.students.vocabularies import (
    88  year_range, lgas_vocab, CertificateSource, GenderSource,
    9   entry_session_vocab, verdicts, StudyLevelSource,
     9  academic_sessions_vocab, verdicts, StudyLevelSource,
    1010  )
    1111
     
    130130    current_session = schema.Choice(
    131131        title = u'Current Session',
    132         source = entry_session_vocab,
     132        source = academic_sessions_vocab,
    133133        default = None,
    134134        required = True,
  • main/waeup.sirp/trunk/src/waeup/sirp/students/vocabularies.py

    r6742 r6744  
    1414    return range(curr_year - 2, curr_year + 5)
    1515
    16 def entry_sessions():
     16def academic_sessions():
    1717    curr_year = datetime.now().year
    1818    year_range = range(curr_year - 10, curr_year + 2)
    1919    return [('%s/%s' % (year,year+1), year) for year in year_range]
    2020
    21 entry_session_vocab = SimpleWAeUPVocabulary(*entry_sessions())
     21academic_sessions_vocab = SimpleWAeUPVocabulary(*academic_sessions())
    2222
    2323lgas_vocab = SimpleWAeUPVocabulary(
Note: See TracChangeset for help on using the changeset viewer.