Changeset 5186


Ignore:
Timestamp:
10 May 2010, 16:12:04 (15 years ago)
Author:
Henrik Bettermann
Message:

fix dp, pt and ct application, improve logging

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r5166 r5186  
    17071707                        break
    17081708                    if not applicant.pin:
    1709                         s_logger.info('%s successfully used PIN %s' % (ref,pin_str))
     1709                        s_logger.info('%s successfully used PIN %s, imported applicant record modified' % (ref,pin_str))
    17101710                        d = {}
    17111711                        d['reg_no'] = applicant.reg_no
     
    17161716                    elif applicant.pin != pin_str:
    17171717                        s_logger.info('%s/%s tried to enter application record with different PIN %s' % (member_id,ref,pin_str))
    1718                     elif applicant.pin == pin_str:
    1719                         s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (member_id,ref,pin_str))
     1718                    #elif applicant.pin == pin_str:
     1719                        #s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (member_id,ref,pin_str))
    17201720                else:
    17211721                    datastructure['reg_no'] = ref
     
    17271727                            s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,screening_type_request,getattr(res[0],'screening_type',None)))
    17281728                            break
    1729                         s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (member_id,ref,pin_str))
     1729                        #s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (member_id,ref,pin_str))
    17301730                    else:
    1731                         s_logger.info('%s successfully used PIN %s' % (ref,pin_str))
     1731                        s_logger.info('%s successfully used PIN %s, applicant record added' % (ref,pin_str))
    17321732                        d = {}
    17331733                        d['reg_no'] = ref
  • WAeUP_SRP/trunk/profiles/default/vocabularies/application_status.xml

    r3689 r5186  
    77    <property name="acl_write_roles">Manager</property>
    88
    9     <item key="entered" msgid="">APP PIN entered</item>
     9    <item key="entered" msgid="">PIN entered</item>
    1010    <item key="reset" msgid="">Record reset (not yet re-submitted)</item>
    1111    <item key="edited" msgid="">Record edited (not yet submitted)</item>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/screening_types.xml

    r5165 r5186  
    99  <item key="pde" msgid="">PUDE</item>
    1010  <item key="cest" msgid="">CEST</item>
     11  <item key="dp" msgid="">Diploma</item>
     12  <item key="pt" msgid="">Part-Time</item>
     13  <item key="ct" msgid="">Certificate</item>
    1114  <item key="sandwich2008" msgid="">Sandwich 2008</item>
    1215  <item key="pce" msgid="">PCE</item>
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r5165 r5186  
    4141headings['pce'] = 'Apply for PCE Screening (2009/2010)! '
    4242headings['sandwich2008'] = 'Apply for Part Time Degree in Education (2008/2009)! '
    43 headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2009/2010)! '
    44 headings['pt'] = 'Apply for Part-Time Degree (2009/2010)! '
     43headings['cest'] = 'Apply for Part-Time Degree Programmes (2009/2010)! '
     44headings['pt'] = 'Apply for Part-Time Degree Programmes (2009/2010)! '
    4545headings['dp'] = 'Apply for Diploma Programmes (2009/2010)! '
    4646headings['ct'] = 'Apply for Certificate Programmes (2009/2010)! '
     
    126126if traverse_subpath and traverse_subpath[0] in screening_types:
    127127    screening_type = traverse_subpath[0]
    128 without_reg_no = screening_type in ('prence','cest','sandwich','sandwich2008')
     128without_reg_no = screening_type in ('prence','cest','sandwich','sandwich2008','dp','pt','ct')
    129129info['expired'] = current.greaterThan(deaddates[screening_type])
    130130info['expiration_date'] = deaddates[screening_type]
     
    272272    if submitted:
    273273        mode = "view"
    274         logger.info('%s/%s views application record' % (member,reg_no))
     274        logger.info('%s/%s is viewing application record' % (member,reg_no))
    275275    else:
    276276        mode = "edit"
    277         logger.info('%s/%s edits application record' % (member,reg_no))
     277        logger.info('%s/%s started editing application record' % (member,reg_no))
    278278    psm = ""
    279279    if without_reg_no:
  • WAeUP_SRP/trunk/skins/waeup_uniben/apply_admission_slip.pt

    r5174 r5186  
    4040          NOTICE:
    4141          <br /><br />
    42           SCREENING TESTS TAKE PLACE FOR PART TIME (UNDERGRADUATE) CANDIDATES ON SATURDAY, JUNE 5TH, 2010.
     42          SCREENING TESTS TAKE PLACE FOR PART TIME (UNDERGRADUATE) CANDIDATES ON SATURDAY, JUNE 12TH, 2010.
    4343          PLEASE REPORT TO THE VENUE OF SCREENING BY 7:30 AM.
    4444        </span>
    4545        <span tal:condition="python: screening_test">
    4646          <br /><br />
    47           PLEASE REPRINT YOUR ACKNOWLEDGEMENT SLIP TO GET SCREENING VENUE AS FROM TUESDAY, JUNE 1ST, 2010.
     47          PLEASE REPRINT YOUR ACKNOWLEDGEMENT SLIP TO GET SCREENING VENUE AS FROM TUESDAY, JUNE 8TH, 2010.
    4848        </span>
    4949        <span tal:condition="python: screening_test">
Note: See TracChangeset for help on using the changeset viewer.