- Timestamp:
- 30 Mar 2012, 10:23:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r7997 r8008 27 27 from hurry.workflow.interfaces import ( 28 28 IWorkflowInfo, IWorkflowState, InvalidTransitionError) 29 from waeup.kofa.applicants.container import ApplicantsContainer 29 30 from waeup.kofa.applicants.interfaces import ( 30 31 IApplicant, IApplicantEdit, IApplicantsRoot, … … 169 170 return 170 171 # Add new applicants container... 171 provider = data['provider'][1] 172 container = provider.factory() 172 container = ApplicantsContainer() 173 173 self.applyData(container, **data) 174 174 container.code = code … … 363 363 @action(_('Create application record')) 364 364 def addApplicant(self, **data): 365 applicant = createObject( self.context.factory_name)365 applicant = createObject(u'waeup.Applicant') 366 366 self.applyData(applicant, **data) 367 367 self.context.addApplicant(applicant) … … 921 921 return 922 922 # Add applicant and create password 923 applicant = createObject( self.context.factory_name)923 applicant = createObject(u'waeup.Applicant') 924 924 self.applyData(applicant, **data) 925 925 self.context.addApplicant(applicant)
Note: See TracChangeset for help on using the changeset viewer.