Changeset 992 for WAeUP_SRP/trunk


Ignore:
Timestamp:
5 Dec 2006, 14:02:37 (18 years ago)
Author:
joachim
Message:

=fix for attribute Error

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r990 r992  
    493493                #import pdb;pdb.set_trace()
    494494                if self.isStudent():
    495                     student = self.getStudentInfo()['student']
    496495                    s_id = student.getId()
     496                    if self.reference == "jamb_reg_no":
     497                        err = "You are already logged in" % s_id
     498                        s_logger.info("Student %s logged in used Pin %s" % (s_id,pin))
     499                        break
    497500                    s_logger.info("Student %s used Pin %s" % (s_id,pin))
    498501                    break
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission.py

    r979 r992  
    1414wf = context.portal_workflow
    1515validate = REQUEST.has_key("cpsdocument_create_button")
     16
     17mtool = context.portal_membership
     18is_anon = mtool.isAnonymousUser()
     19member = mtool.getAuthenticatedMember()
    1620
    1721lt = context.portal_layouts
     
    4448elif psm == 'valid':
    4549    s_id = ds.get('s_id')
     50    if not s_id and not is_anon:
     51        s_id = str(member)
     52    elif not is_anon:
     53        return context.check_admission_pin_form(rendered = res,
     54                                 psm = "Please log out and try again",
     55                                 #psm = "%s, %s" % (psm,ds),
     56                                 firstlayout = True,
     57                                 lastlayout = True,
     58                                 ds = ds,
     59                                 )
     60       
    4661## 
    4762##    email = ds.get('app_email')
     
    5166        url = "%s/campus/students/%s/pume/admission_rejected_view" % (context.portal_url(),s_id)
    5267        return redirect(url)
    53     pin = str(ds.get('app_ac_pin'))
     68    pin = str(ds.get('app_ac_pin_n'))
    5469    args = {}
    5570    args['__ac_name'] = s_id
    56     args['__ac_password'] = pin.split('-')[2]
     71    #args['__ac_password'] = pin.split('-')[2]
     72    args['__ac_password'] = pin
    5773    args['pin'] = pin
    5874##    args['email'] = email
Note: See TracChangeset for help on using the changeset viewer.