Changeset 2002


Ignore:
Timestamp:
9 Jul 2007, 17:11:39 (17 years ago)
Author:
Henrik Bettermann
Message:

problem with wrong batch number fixed

Now we need a fix to replace the application PINs in all application objects.

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r2001 r2002  
    11611161        v = datamodel[self.fields[0]]
    11621162        if v and type(v) is StringType:
    1163             return self.fields[0]
    11641163            try:
    11651164                p,b,n = v.split('-')
    11661165                v = ScratchCardPin(p,b,n)
    11671166            except ValueError:
    1168                 v = ScratchCardPin(self.prefix,'X',v)
     1167                v = ScratchCardPin(self.prefix,'XXX',v)
    11691168                pass
    11701169        if v:
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission.py

    r1867 r2002  
    6565                                 ds = ds,
    6666                                 )
    67 ## 
     67##
    6868##    email = ds.get('app_email')
    6969    student = getattr(context.campus.students, s_id)
     
    7272        url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id)
    7373        return redirect(url)
    74     pin = str(ds.get('app_ac_pin_n'))
     74    pw = str(ds.get('app_ac_pin_n'))
    7575    args = {}
    7676    args['__ac_name'] = s_id
    7777    #args['__ac_password'] = pin.split('-')[2]
    78     args['__ac_password'] = pin
    79     args['pin'] = pin
     78    args['__ac_password'] = pw
     79    args['pin'] = str(ds.get('app_ac_pin_p')) + '-' + str(ds.get('app_ac_pin_b')) + '-' + str(ds.get('app_ac_pin_n'))
    8080##    args['email'] = email
    8181    url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.