Ignore:
Timestamp:
28 May 2018, 07:16:26 (6 years ago)
Author:
Henrik Bettermann
Message:

Reduce number of students per school.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py

    r14499 r15027  
    206206                    and appl.school1 == self.context.school1:
    207207                    counter += 1
    208                     if counter == 20:
     208                    if counter == 10:
    209209                        return True
    210210        return False
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r14499 r15027  
    159159        )
    160160
    161     school2 = schema.Choice(
    162         title = _(u'2nd Choice TPZ and School'),
    163         source = SchoolSource(),
    164         required = False,
    165         )
    166 
    167     school3 = schema.Choice(
    168         title = _(u'3rd Choice TPZ and School'),
    169         source = SchoolSource(),
    170         required = False,
    171         )
     161    #school2 = schema.Choice(
     162    #    title = _(u'2nd Choice TPZ and School'),
     163    #    source = SchoolSource(),
     164    #    required = False,
     165    #    )
     166
     167    #school3 = schema.Choice(
     168    #    title = _(u'3rd Choice TPZ and School'),
     169    #    source = SchoolSource(),
     170    #    required = False,
     171    #    )
    172172
    173173class ICustomUGApplicant(INigeriaUGApplicant):
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py

    r14499 r15027  
    210210            'Application submitted' in self.browser.contents)
    211211        # Create 20 applicants who already selected s0010
    212         for i in range(1,21):
     212        for i in range(1,11):
    213213            tpuapplicant = createObject(u'waeup.Applicant')
    214214            tpuapplicant.firstname = u'John'
Note: See TracChangeset for help on using the changeset viewer.