Changeset 3367


Ignore:
Timestamp:
21 Mar 2008, 13:29:31 (17 years ago)
Author:
Henrik Bettermann
Message:

do not allow returning students to check admission

Location:
WAeUP_SRP/base
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r3355 r3367  
    798798        elif self.reference == '':
    799799            #s = getStudentByRegNo(self,value)
    800             pume = reg_no_catalog(jamb_reg_no = value)
    801             if len(pume) < 1:
     800            student_record = reg_no_catalog(jamb_reg_no = value)
     801            if len(student_record) < 1:
    802802                err = 'No student record with this registration number'
     803            elif self.catalog == "students_catalog" and student_record[0].review_state not in ('student_created','admitted'):
     804                err = 'Admission checking not allowed (wrong registration state)'
    803805            else:
    804                 datastructure['pume'] = pume[0]
     806                datastructure['student_record'] = student_record[0]
    805807        elif mode == 'add':
    806808            pass
     
    21942196        return info
    21952197        ###)
    2196    
     2198
    21972199    def prepare(self, datastructure, **kw): ###(
    21982200        """Prepare datastructure from datamodel."""
  • WAeUP_SRP/base/skins/waeup_student/check_admission.py

    r3366 r3367  
    7272    #    url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id)
    7373    #    return redirect(url)
    74    
     74
    7575    pw = str(ds.get('app_ac_pin_n'))
    7676    logger.info('%s successfully checked admission and logged in with password %s' % (s_id,pw))
  • WAeUP_SRP/base/skins/waeup_student/set_access_data.py

    r1826 r3367  
    2929        logger.info('Student object with matric_no %s neither exists in students_catalog nor in returning_import' % matric_no)
    3030        return
    31 res,psm,ds = lt.renderLayout(layout_id= 'student_session_results_search',
     31res,psm,ds = lt.renderLayout(layout_id= 'student_firsttime_login',
    3232                      schema_id= 'student_returning',
    3333                      context=context,
Note: See TracChangeset for help on using the changeset viewer.