Changeset 2356 for WAeUP_SRP/base


Ignore:
Timestamp:
12 Oct 2007, 19:55:26 (17 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2355 r2356  
    14261426            if ok >= 1:
    14271427                #screening_type = self.REQUEST.form.get('screening_type','unknown')
    1428                 #screening_type = datastructure['screening_type']               
    1429                
     1428                #screening_type = datastructure['screening_type']
     1429
    14301430                if self.REQUEST.traverse_subpath:
    14311431                    screening_type_request = self.REQUEST.traverse_subpath[0]
     
    14411441                          and screening_type_request != 'manage':
    14421442                        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))
    14451444                        break
    14461445                    if not applicant.pin:
     
    18241823                                             info['current_filename'])
    18251824        return info
    1826            
     1825
    18271826    def getImageInfo(self, datastructure): ###(
    18281827        """Get the file info from the datastructure."""
     
    20012000                max_size_str = self.getHumanReadableSize(self.size_max)
    20022001                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) )
    20042004                err_mapping = {'max_size': max_size_str}
    20052005                return self.validateError(err, err_mapping, datastructure)
Note: See TracChangeset for help on using the changeset viewer.