Changeset 17106


Ignore:
Timestamp:
23 Sep 2022, 13:18:58 (2 years ago)
Author:
Henrik Bettermann
Message:

Customize transcript application.

Location:
main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/browser.py

    r17095 r17106  
    184184
    185185    def display_fileupload(self, filename):
    186         if filename[1] == 'res_stat' \
    187             and self.target is not None \
    188             and not self.target.startswith('tsc'):
     186        if self.target is not None and not self.target.startswith('tsc'):
    189187            return False
    190         if filename[1] == 'testimonial' \
    191             and self.target is not None \
    192             and not self.target.startswith('tsc'):
    193             return False
    194         return True
    195188
    196189    @property
     
    221214
    222215    def display_fileupload(self, filename):
    223         if filename[1] == 'res_stat' \
    224             and self.target is not None \
    225             and not self.target.startswith('tsc'):
     216        if self.target is not None and not self.target.startswith('tsc'):
    226217            return False
    227         if filename[1] == 'testimonial' \
    228             and self.target is not None \
    229             and not self.target.startswith('tsc'):
    230             return False
    231         return True
    232218
    233219    @property
     
    261247            and not store.getFileByContext(self.context, attr=u'res_stat.pdf'):
    262248            return _('No statement of result pdf file uploaded.')
     249        if self.target is not None \
     250            and self.target.startswith('tscf') \
     251            and not store.getFileByContext(self.context, attr=u'not_reg.pdf'):
     252            return _('No notification of result pdf file uploaded.')
    263253        #if self.target is not None \
    264254        #    and self.target.startswith('tsc') \
     
    269259class ResultStatement(AdditionalFile):
    270260    grok.name('res_stat')
    271 
    272 class NotificationRegistrationForm(AdditionalFile):
    273     grok.name('not_reg')     
    274261   
     262class Testimonial(AdditionalFile):
     263    grok.name('testimonial')
     264
     265class NotificationResult(AdditionalFile):
     266    grok.name('not_res')     
     267   
     268class DocumentUploadForm(AdditionalFile):
     269    grok.name('docupload')
     270
    275271class OtherDocument1(AdditionalFile):
    276     grok.name('doc_1')
    277 
    278 class OtherDocument2(AdditionalFile):
    279     grok.name('doc_2')   
    280 
    281 class OtherDocument3(AdditionalFile):
    282     grok.name('doc_3')           
     272    grok.name('doc_1')   
     273
     274class OtherDocument4(AdditionalFile):
     275    grok.name('doc_2')           
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/utils.py

    r17095 r17106  
    3333
    3434    ADDITIONAL_FILES = (
     35                 ('Statement of Result','res_stat'),
    3536                 ('Testimonial','testimonial'),
    36                  ('Notification of Registration (optional)','not_reg'),
     37                 ('Notification of Result / RN Certificate (compulsory)','not_res'),
     38                 ('Document Upload Form to be filled by School (optional)','docupload'),
    3739                 ('Document 1','doc_1'),
    3840                 ('Document 2','doc_2'),
    39                  ('Document 3','doc_3'),
    4041                 )
    4142
Note: See TracChangeset for help on using the changeset viewer.