Changeset 7376


Ignore:
Timestamp:
18 Dec 2011, 11:29:58 (13 years ago)
Author:
Henrik Bettermann
Message:

In the base system we don't use access codes (activation codes) anymore. I'd like to leave the respective lines as comments in case we need them in customization packages.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/__init__.py

    r7347 r7376  
    77    )
    88from waeup.sirp.applicants.container import ApplicantsContainer
    9 from waeup.sirp.applicants.root import (
    10     ApplicantsRoot, get_applicant_data, application_exists,
    11     )
     9from waeup.sirp.applicants.root import ApplicantsRoot
    1210from waeup.sirp.applicants.dynamicroles import (
    1311    ApplicantPrincipalRoleManager,)
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py

    r7364 r7376  
    127127    grok.context(IApplicant)
    128128
    129     access_code = index.Field(attribute='access_code')
     129    #access_code = index.Field(attribute='access_code')
    130130    applicant_id = index.Field(attribute='applicant_id')
    131131    reg_number = index.Field(attribute='reg_number')
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7364 r7376  
    172172        )
    173173
    174     ac_prefix = schema.Choice(
    175         title = u'Access code prefix',
    176         required = True,
    177         default = None,
    178         source = application_pins_vocab,
    179         )
     174    #ac_prefix = schema.Choice(
     175    #    title = u'Activation code prefix',
     176    #    required = True,
     177    #    default = None,
     178    #    source = application_pins_vocab,
     179    #    )
    180180
    181181    application_category = schema.Choice(
     
    300300        source = contextual_reg_num_source,
    301301        )
    302     access_code = schema.TextLine(
    303         title = u'Access Code',
    304         required = False,
    305         readonly = True,
    306         )
     302    #access_code = schema.TextLine(
     303    #    title = u'Activation Code',
     304    #    required = False,
     305    #    readonly = True,
     306    #    )
    307307    firstname = schema.TextLine(
    308308        title = u'First Name',
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7372 r7376  
    7979        # Add an applicants container
    8080        applicantscontainer = ApplicantsContainer()
    81         applicantscontainer.ac_prefix = 'APP'
     81        #applicantscontainer.ac_prefix = 'APP'
    8282        applicantscontainer.code = u'app2009'
    8383        applicantscontainer.prefix = 'app'
     
    243243        self.browser.getControl(name="form.provider").value = [
    244244            'waeup.sirp.applicants.ApplicantsContainer']
    245         self.browser.getControl(name="form.ac_prefix").value = ['APP']
     245        #self.browser.getControl(name="form.ac_prefix").value = ['APP']
    246246        self.browser.getControl(name="form.application_category").value = ['basic']
    247247        self.browser.getControl("Add applicants container").click()
     
    255255        self.browser.getControl(name="form.provider").value = [
    256256            'waeup.sirp.applicants.ApplicantsContainer']
    257         self.browser.getControl(name="form.ac_prefix").value = ['APP']
     257        #self.browser.getControl(name="form.ac_prefix").value = ['APP']
    258258        self.browser.getControl(name="form.application_category").value = ['basic']
    259259        self.browser.getControl("Add applicants container").click()
     
    269269        self.browser.getControl(name="form.provider").value = [
    270270            'waeup.sirp.applicants.ApplicantsContainer']
    271         self.browser.getControl(name="form.ac_prefix").value = ['APP']
     271        #self.browser.getControl(name="form.ac_prefix").value = ['APP']
    272272        self.browser.getControl(name="form.application_category").value = ['basic']
    273273        self.browser.getControl("Add applicants container").click()
Note: See TracChangeset for help on using the changeset viewer.