Changeset 7351 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 15 Dec 2011, 12:04:13 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7347 r7351 115 115 student['studycourse'].certificate = self.course_admitted 116 116 # Create StudentApplication object ... 117 application = createObject(u'waeup.StudentApplication')117 #application = createObject(u'waeup.StudentApplication') 118 118 # ... copy applicant base data 119 form_fields = grok.AutoFields(IApplicantBaseData)120 field_names = [i.__name__ for i in form_fields]121 for name in field_names:122 value = getattr(self,name,None)123 if value:124 setattr(application,name,value)125 site['students'][student.student_id]['application'] = application119 #form_fields = grok.AutoFields(IApplicantBaseData) 120 #field_names = [i.__name__ for i in form_fields] 121 #for name in field_names: 122 # value = getattr(self,name,None) 123 # if value: 124 # setattr(application,name,value) 125 #site['students'][student.student_id]['application'] = application 126 126 return True, 'Student %s created' % student.student_id 127 127 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7347 r7351 473 473 """ 474 474 course_admitted = self.context.course_admitted 475 if ICertificate.providedBy(course_admitted):475 if getattr(course_admitted, '__parent__',None): 476 476 url = self.url(course_admitted) 477 477 title = course_admitted.title … … 688 688 """ 689 689 course_admitted = self.context.course_admitted 690 if ICertificate.providedBy(course_admitted): 690 #if ICertificate.providedBy(course_admitted): 691 if getattr(course_admitted, '__parent__',None): 691 692 title = course_admitted.title 692 693 code = course_admitted.code … … 763 764 764 765 course_admitted = self.context.course_admitted 765 if ICertificate.providedBy(course_admitted):766 if getattr(course_admitted, '__parent__',None): 766 767 f_label = '<font size=12>Department:</font>' 767 768 f_text = '<font size=12>%s</font>' % ( … … 847 848 form_fields = grok.AutoFields(IApplicant) 848 849 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') 850 form_fields['student_id'].for_display = True 849 851 grok.template('applicanteditpage') 850 852 manage_applications = True … … 993 995 actions = [['Save', 'Final Submit'], 994 996 ['Remove selected tickets']] 995 el if state == SUBMITTED:997 else: 996 998 actions = [[],[]] 997 999 return actions -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7347 r7351 396 396 title = u'Student Id', 397 397 required = False, 398 readonly = True,398 readonly = False, 399 399 ) 400 400 locked = schema.Bool(
Note: See TracChangeset for help on using the changeset viewer.