Ignore:
Timestamp:
25 Jun 2011, 17:18:28 (14 years ago)
Author:
Henrik Bettermann
Message:

Remove application_date from schema. This date should not be displayed on forms and slips since we have the same information in the object history. It's needed in export files for sorting and filtering.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
3 edited

Legend:

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

    r6475 r6476  
    4646        super(Applicant, self).__init__()
    4747        IWorkflowInfo(self).fireTransition('init')
     48        self.application_date = None
    4849        return
    4950
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6475 r6476  
    697697    grok.name('edit_full')
    698698    grok.require('waeup.manageApplications')
    699     form_fields = grok.AutoFields(IApplicant)   #.omit('locked')
     699    form_fields = grok.AutoFields(IApplicant)
    700700    form_fields['passport'].custom_widget = EncodingImageFileWidget
    701701    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
     
    753753    grok.require('waeup.handleApplication')
    754754    form_fields = grok.AutoFields(IApplicantEdit).omit(
    755         'locked', 'course_admitted', 'application_date', 'student_id',
     755        'locked', 'course_admitted', 'student_id',
    756756        'screening_score',
    757757        )
     
    810810            return
    811811        IWorkflowInfo(self.context).fireTransition('submit')
     812        self.context.application_date = datetime.now()
    812813        self.context.locked = True
    813814        self.flash('Form has been submitted.')
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6391 r6476  
    295295    history = Attribute('Object history, a list of messages.')
    296296    state = Attribute('Returns the application state of an applicant')
    297 
    298     def getApplicantsRootLogger():
    299         """Returns the logger from the applicants root object
     297    application_date = Attribute('Date of submission, used for export only')
     298
     299    #def getApplicantsRootLogger():
     300    #    """Returns the logger from the applicants root object
     301    #    """
     302
     303    def loggerInfo(ob_class, comment):
     304        """Adds an INFO message to the log file
    300305        """
    301306
     
    369374    # Process Data
    370375    #
    371     application_date = schema.Date(
    372         title = u'Application Date',
    373         required = False,
    374         readonly = True,
    375         )
    376376    screening_score = schema.Int(
    377377        title = u'Screening Score',
     
    388388        required = False,
    389389        )
    390     # entry_session is inherited from the container
    391     #entry_session = schema.Choice(
    392     #    source = entry_session_vocab,
    393     #    title = u'Entry Session',
    394     #    required = False,
    395     #    )
    396390    notice = schema.Text(
    397391        title = u'Notice',
Note: See TracChangeset for help on using the changeset viewer.