Index: /WAeUP_SRP/base/Widgets.py
===================================================================
--- /WAeUP_SRP/base/Widgets.py	(revision 2354)
+++ /WAeUP_SRP/base/Widgets.py	(revision 2355)
@@ -1438,9 +1438,8 @@
                 elif datastructure.has_key('record'):
                     applicant = datastructure['record']
-                    
-                    if applicant.screening_type != screening_type_request and screening_type_request != 'manage':
+                    if applicant.screening_type != screening_type_request\
+                          and screening_type_request != 'manage':
                         err = "You used the wrong application form!"
                         s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,
-                                                                                           screening_type_request,
                                                                                            applicant.screening_type))
                         break
@@ -2030,6 +2029,7 @@
             full_path = os.path.join(student_path, filename)
             pict = open(full_path,"w")
-            fileupload.seek(0)
-            pict.write(fileupload.read())
+            #fileupload.seek(0)
+            #import pdb; pdb.set_trace()
+            pict.write(str(file.data))
             pict.close()
         return True
