Changeset 1571 for WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
- Timestamp:
- 17 Mar 2007, 15:25:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r1364 r1571 8 8 pr = context.portal_registration 9 9 import logging 10 logger = logging.getLogger('S tudent.Clearance.Start')10 logger = logging.getLogger('Skins.start_clearance') 11 11 12 12 #type_name = 'Student' … … 23 23 if info is None: 24 24 member_id = str(context.portal_membership.getAuthenticatedMember()) 25 logger.info(' "%s","tried to start clearance for", "%s"' % (member_id,request.get('PATH_INFO').split('/')[-2]))25 logger.info('%s tried to start clearance for %s' % (member_id,request.get('PATH_INFO').split('/')[-2])) 26 26 return redirect("%s/srp_invalid_access" % context.portal_url()) 27 27 app_doc = info['app_doc'] … … 55 55 psm = "You have already entered a clearance pin!" 56 56 error = True 57 logger.info(' "%s", "tried to start clearance though already started"' % (info['id']))57 logger.info('%s tried to start clearance though already started' % (info['id'])) 58 58 elif psm == 'invalid': 59 59 psm = "Please correct your input!" 60 60 error = True 61 logger.info(' "%s","entered wrong clearance pin"' % (info['id']))61 logger.info('%s entered wrong clearance pin' % (info['id'])) 62 62 elif app_doc.passport is None: 63 63 #psm = "You must upload your passport picture before you can start the registration process!" 64 64 #error = True 65 logger.info(' "%s", "started clearance without passport picture"' % (info['id']))65 logger.info('%s started clearance without passport picture' % (info['id'])) 66 66 if error: 67 67 return context.clearance_pin_form(rendered = res, … … 74 74 session.set("clicked","clicked") 75 75 pin = str(ds.get('clr_ac_pin')) 76 logger.info(' "%s", "started clearance with pin", "%s"' % (info['id'],pin))76 logger.info('%s started clearance with pin %s' % (info['id'],pin)) 77 77 wf.doActionFor(info['student'],'enter_clearance_pin') 78 78 wf.doActionFor(info['clear'],'open') … … 89 89 90 90 if info['penalty']: 91 logger.info(' "%s","started late clearance"' % (info['id']))91 logger.info('%s started late clearance' % (info['id'])) 92 92 93 93 return redirect("%s/clearance_edit_form" % info['clear'].absolute_url())
Note: See TracChangeset for help on using the changeset viewer.