Ignore:
Timestamp:
3 Sep 2019, 12:07:02 (5 years ago)
Author:
Henrik Bettermann
Message:

Do not copy applicant_id into reg_number field after applicant creation.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r15548 r15578  
    13651365                    ob_class, applicant.applicant_id))
    13661366            self.applyData(applicant, **data)
    1367             applicant.reg_number = applicant.applicant_id
     1367            # applicant.reg_number = applicant.applicant_id
    13681368            notify(grok.ObjectModifiedEvent(applicant))
    13691369        elif self.context.mode == 'update':
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r15548 r15578  
    13141314        self.assertEqual(applicant.lastname,'Kurios')
    13151315        # The application_id has been copied to the reg_number
    1316         self.assertEqual(applicant.applicant_id, applicant.reg_number)
     1316        #self.assertEqual(applicant.applicant_id, applicant.reg_number)
    13171317        # The applicant can be found in the catalog via the reg_number
    1318         results = list(
    1319             cat.searchResults(
    1320             reg_number=(applicant.reg_number, applicant.reg_number)))
    1321         self.assertEqual(applicant,results[0])
     1318        #results = list(
     1319        #    cat.searchResults(
     1320        #    reg_number=(applicant.reg_number, applicant.reg_number)))
     1321        #self.assertEqual(applicant,results[0])
    13221322        return
    13231323
Note: See TracChangeset for help on using the changeset viewer.