Changeset 8014


Ignore:
Timestamp:
2 Apr 2012, 09:19:37 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove trash.

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  
    371371
    372372class ApplicantDisplayFormPage(KofaDisplayFormPage):
     373    """A display view for applicant data.
     374    """
    373375    grok.context(IApplicant)
    374376    grok.name('index')
     
    572574    grok.name('application_slip.pdf')
    573575    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')
    577576    prefix = 'form'
    578 
    579     #@property
    580     #def label(self):
    581     #    portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    582     #    container_title = self.context.__parent__.title
    583     #    label = translate('Application Record',
    584     #        'waeup.kofa', target_language=portal_language)
    585     #    return container_title +  label + self.context.application_number
    586 
    587     #def getCourseAdmitted(self):
    588     #    """Return title and code in html format to the certificate
    589     #       admitted.
    590     #    """
    591     #    course_admitted = self.context.course_admitted
    592     #    #if ICertificate.providedBy(course_admitted):
    593     #    if getattr(course_admitted, '__parent__',None):
    594     #        title = course_admitted.title
    595     #        code = course_admitted.code
    596     #        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_request
    605     #        )
    606577
    607578    def render(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r8010 r8014  
    418418    """
    419419
     420    def createStudent():
     421        """Create a student object from applicatnt data
     422        and copy applicant object.
     423        """
     424
    420425class IApplicantEdit(IApplicantProcessData):
    421426    """An applicant interface for editing.
     
    462467        )
    463468
    464     def createStudent():
    465         """Create a student object from applicatnt data
    466         and copy applicant object.
    467         """
    468 
    469469class IApplicantUpdateByRegNo(IApplicant):
    470470    """Representation of an applicant.
Note: See TracChangeset for help on using the changeset viewer.