Changeset 6476 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 25 Jun 2011, 17:18:28 (14 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/applicants.py
r6475 r6476 46 46 super(Applicant, self).__init__() 47 47 IWorkflowInfo(self).fireTransition('init') 48 self.application_date = None 48 49 return 49 50 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6475 r6476 697 697 grok.name('edit_full') 698 698 grok.require('waeup.manageApplications') 699 form_fields = grok.AutoFields(IApplicant) #.omit('locked')699 form_fields = grok.AutoFields(IApplicant) 700 700 form_fields['passport'].custom_widget = EncodingImageFileWidget 701 701 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year') … … 753 753 grok.require('waeup.handleApplication') 754 754 form_fields = grok.AutoFields(IApplicantEdit).omit( 755 'locked', 'course_admitted', ' application_date', 'student_id',755 'locked', 'course_admitted', 'student_id', 756 756 'screening_score', 757 757 ) … … 810 810 return 811 811 IWorkflowInfo(self.context).fireTransition('submit') 812 self.context.application_date = datetime.now() 812 813 self.context.locked = True 813 814 self.flash('Form has been submitted.') -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6391 r6476 295 295 history = Attribute('Object history, a list of messages.') 296 296 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 300 305 """ 301 306 … … 369 374 # Process Data 370 375 # 371 application_date = schema.Date(372 title = u'Application Date',373 required = False,374 readonly = True,375 )376 376 screening_score = schema.Int( 377 377 title = u'Screening Score', … … 388 388 required = False, 389 389 ) 390 # entry_session is inherited from the container391 #entry_session = schema.Choice(392 # source = entry_session_vocab,393 # title = u'Entry Session',394 # required = False,395 # )396 390 notice = schema.Text( 397 391 title = u'Notice',
Note: See TracChangeset for help on using the changeset viewer.