Changeset 2355 for WAeUP_SRP/base


Ignore:
Timestamp:
12 Oct 2007, 15:57:45 (17 years ago)
Author:
joachim
Message:

write resized image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2354 r2355  
    14381438                elif datastructure.has_key('record'):
    14391439                    applicant = datastructure['record']
    1440                    
    1441                     if applicant.screening_type != screening_type_request and screening_type_request != 'manage':
     1440                    if applicant.screening_type != screening_type_request\
     1441                          and screening_type_request != 'manage':
    14421442                        err = "You used the wrong application form!"
    14431443                        s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,
    1444                                                                                            screening_type_request,
    14451444                                                                                           applicant.screening_type))
    14461445                        break
     
    20302029            full_path = os.path.join(student_path, filename)
    20312030            pict = open(full_path,"w")
    2032             fileupload.seek(0)
    2033             pict.write(fileupload.read())
     2031            #fileupload.seek(0)
     2032            #import pdb; pdb.set_trace()
     2033            pict.write(str(file.data))
    20342034            pict.close()
    20352035        return True
Note: See TracChangeset for help on using the changeset viewer.