Ignore:
Timestamp:
18 Aug 2007, 17:23:25 (17 years ago)
Author:
Henrik Bettermann
Message:

add logging messages
change storage location of passport picture
and more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r2117 r2119  
    13891389                if self.isStudent():
    13901390                    err = "This is only for Pume application."
    1391                     s_logger.info('%s/%s applied for PUME with PIN %s' % (s_id,ref,pin_str))
     1391                    s_logger.info('%s/%s applied for screening test with PIN %s' % (s_id,ref,pin_str))
    13921392                    break
    13931393                else:
     
    14001400                        getattr(self,self.catalog).modifyRecord(**d)
    14011401                    elif applicant.pin != pin_str:
    1402                         s_logger.info('%s/%s repeatedly applied for PUME with different PIN %s' % (s_id,ref,pin_str))
     1402                        s_logger.info('%s/%s tried to enter application record with different PIN %s' % (s_id,ref,pin_str))
    14031403                    elif applicant.pin == pin_str:
    1404                         s_logger.info('%s/%s repeatedly applied for PUME with PIN %s' % (s_id,ref,pin_str))
     1404                        s_logger.info('%s/%s repeatedly entered application record with PIN %s' % (s_id,ref,pin_str))
    14051405            break
    14061406        if err:
     
    14911491    )
    14921492    path = "images"
    1493     storage_path = "%s/var/%s" % (i_home,path)
     1493    storage_path = "%s/import/%s" % (i_home,path)
    14941494    id_field = "reg_no"
    14951495
     
    15581558            mimetype = ''
    15591559            last_modified = ''
     1560            height = ''
     1561            width = ''
     1562           
    15601563        else:
    15611564            image = open(file_path)
     
    15701573            mimetype, width, height = gia(data)
    15711574            #import pdb;pdb.set_trace()
    1572            
     1575
    15731576            if width < 0:
    15741577                width = None
Note: See TracChangeset for help on using the changeset viewer.