Changeset 2356
- Timestamp:
- 12 Oct 2007, 19:55:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2355 r2356 1426 1426 if ok >= 1: 1427 1427 #screening_type = self.REQUEST.form.get('screening_type','unknown') 1428 #screening_type = datastructure['screening_type'] 1429 1428 #screening_type = datastructure['screening_type'] 1429 1430 1430 if self.REQUEST.traverse_subpath: 1431 1431 screening_type_request = self.REQUEST.traverse_subpath[0] … … 1441 1441 and screening_type_request != 'manage': 1442 1442 err = "You used the wrong application form!" 1443 s_logger.info('%s tried to use %s application form but has applied for %s' % (ref, 1444 applicant.screening_type)) 1443 s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,screening_type_request,applicant.screening_type)) 1445 1444 break 1446 1445 if not applicant.pin: … … 1824 1823 info['current_filename']) 1825 1824 return info 1826 1825 1827 1826 def getImageInfo(self, datastructure): ###( 1828 1827 """Get the file info from the datastructure.""" … … 2001 2000 max_size_str = self.getHumanReadableSize(self.size_max) 2002 2001 err = 'This file is too big, the allowed max size is ${max_size}' 2003 logger.info('%s tried to upload picture with size %dk' %(datastructure['reg_no'],int(size)/1000) ) 2002 member_id = str(self.portal_membership.getAuthenticatedMember()) 2003 logger.info('%s tried to upload picture with size %dk' %(member_id,int(size)/1000) ) 2004 2004 err_mapping = {'max_size': max_size_str} 2005 2005 return self.validateError(err, err_mapping, datastructure)
Note: See TracChangeset for help on using the changeset viewer.