Ignore:
Timestamp:
26 Apr 2012, 17:01:32 (13 years ago)
Author:
Henrik Bettermann
Message:

Enable import of password and state. When application_number is given in create mode, construct applicant_id accordingly (do not use id generator) and store applicant with this application_number in the respective container. Attention: application_number can be any string.

More tests will follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py

    r8008 r8290  
    8989            raise TypeError(
    9090                'ApplicantsContainers contain only IApplicant instances')
    91         applicant_id = generate_applicant_id(container=self)
    92         applicant.applicant_id = applicant_id
     91        if applicant.applicant_id is None:
     92            applicant_id = generate_applicant_id(container=self)
     93            applicant.applicant_id = applicant_id
    9394        self[applicant.application_number] = applicant
    9495        return
Note: See TracChangeset for help on using the changeset viewer.