Ignore:
Timestamp:
30 Mar 2012, 10:23:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove all ApplicantsContainerProvider? components. Experience has shown that we only need one type of ApplicantsContainers? and one type of Applicants but with different interfaces for form generation.

File:
1 edited

Legend:

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

    r7997 r8008  
    2727from hurry.workflow.interfaces import (
    2828    IWorkflowInfo, IWorkflowState, InvalidTransitionError)
     29from waeup.kofa.applicants.container import ApplicantsContainer
    2930from waeup.kofa.applicants.interfaces import (
    3031    IApplicant, IApplicantEdit, IApplicantsRoot,
     
    169170            return
    170171        # Add new applicants container...
    171         provider = data['provider'][1]
    172         container = provider.factory()
     172        container = ApplicantsContainer()
    173173        self.applyData(container, **data)
    174174        container.code = code
     
    363363    @action(_('Create application record'))
    364364    def addApplicant(self, **data):
    365         applicant = createObject(self.context.factory_name)
     365        applicant = createObject(u'waeup.Applicant')
    366366        self.applyData(applicant, **data)
    367367        self.context.addApplicant(applicant)
     
    921921            return
    922922        # Add applicant and create password
    923         applicant = createObject(self.context.factory_name)
     923        applicant = createObject(u'waeup.Applicant')
    924924        self.applyData(applicant, **data)
    925925        self.context.addApplicant(applicant)
Note: See TracChangeset for help on using the changeset viewer.