Ignore:
Timestamp:
23 May 2007, 19:23:45 (17 years ago)
Author:
Henrik Bettermann
Message:

reload picture of late admissions after login
Joachim, please check!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1804 r1813  
    150150
    151151    security.declarePublic('loadStudentFoto') ###(
    152     def loadStudentFoto(self,student):
     152    def loadStudentFoto(self,student,filename,folder):
    153153        "return a student passport picture"
    154154        app_doc = student.application.getContent()
    155         clear = student.clearance
    156         clear_doc = clear.getContent()
    157         matric_no = clear_doc.matric_no.upper()
    158         picture1 ="%s/import/pictures_returning/%s.jpg" % (i_home,matric_no)
    159         picture2 ="%s/import/pictures_returning/%s.JPG" % (i_home,matric_no)
     155        #clear = student.clearance
     156        #clear_doc = clear.getContent()
     157        #matric_no = clear_doc.matric_no.upper()
     158        picture1 ="%s/import/%s/%s.jpg" % (i_home,folder,filename)
     159        picture2 ="%s/import/%s/%s.JPG" % (i_home,folder,filename)
    160160        #import pdb;pdb.set_trace()
    161161        if os.path.exists(picture1):
     
    622622            #data['response_code'] = response_code = '00'
    623623            #data['amount'] = amount = pay_transaction['Amount']
    624            
     624
    625625            # format of the third file sent by Kehinde
    626626            data['datetime'] = date = 0
     
    628628            data['order_id'] = order_id = pay_transaction['merchant_reference']
    629629            data['response_code'] = response_code = '00'
    630             data['amount'] = amount = pay_transaction['Amount']           
     630            data['amount'] = amount = pay_transaction['Amount']
    631631
    632632            dup = False
Note: See TracChangeset for help on using the changeset viewer.