Changeset 8014 for main/waeup.kofa/trunk/src
- Timestamp:
- 2 Apr 2012, 09:19:37 (13 years ago)
- 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
r8009 r8014 371 371 372 372 class ApplicantDisplayFormPage(KofaDisplayFormPage): 373 """A display view for applicant data. 374 """ 373 375 grok.context(IApplicant) 374 376 grok.name('index') … … 572 574 grok.name('application_slip.pdf') 573 575 grok.require('waeup.viewApplication') 574 form_fields = grok.AutoFields(IApplicant).omit(575 'locked', 'course_admitted')576 form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le')577 576 prefix = 'form' 578 579 #@property580 #def label(self):581 # portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE582 # container_title = self.context.__parent__.title583 # label = translate('Application Record',584 # 'waeup.kofa', target_language=portal_language)585 # return container_title + label + self.context.application_number586 587 #def getCourseAdmitted(self):588 # """Return title and code in html format to the certificate589 # admitted.590 # """591 # course_admitted = self.context.course_admitted592 # #if ICertificate.providedBy(course_admitted):593 # if getattr(course_admitted, '__parent__',None):594 # title = course_admitted.title595 # code = course_admitted.code596 # return '%s - %s' %(code,title)597 # return ''598 599 #def setUpWidgets(self, ignore_request=False):600 # self.adapters = {}601 # self.widgets = setUpEditWidgets(602 # self.form_fields, self.prefix, self.context, self.request,603 # adapters=self.adapters, for_display=True,604 # ignore_request=ignore_request605 # )606 577 607 578 def render(self): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8010 r8014 418 418 """ 419 419 420 def createStudent(): 421 """Create a student object from applicatnt data 422 and copy applicant object. 423 """ 424 420 425 class IApplicantEdit(IApplicantProcessData): 421 426 """An applicant interface for editing. … … 462 467 ) 463 468 464 def createStudent():465 """Create a student object from applicatnt data466 and copy applicant object.467 """468 469 469 class IApplicantUpdateByRegNo(IApplicant): 470 470 """Representation of an applicant.
Note: See TracChangeset for help on using the changeset viewer.