Subversion Repositories SmartDukaan

Rev

Rev 16825 | Rev 16828 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16825 Rev 16826
Line 173... Line 173...
173
            chunks = []
173
            chunks = []
174
            filepath = "/tmp/rejectfile"
174
            filepath = "/tmp/rejectfile"
175
            with open(filepath, 'wb') as image_file:
175
            with open(filepath, 'wb') as image_file:
176
                while True:
176
                while True:
177
                    chunk = request.stream.read(4096)
177
                    chunk = request.stream.read(4096)
-
 
178
                    if not chunk:
-
 
179
                        break
178
                    image_file.write(chunk)
180
                    image_file.write(chunk)
179
                print cgi.parse_multipart(image_file, pdict)
181
                print cgi.parse_multipart(image_file, pdict)
180
            rejectCount = process_rejects(filepath) #this function is not yet implemented
182
            rejectCount = process_rejects(filepath) #this function is not yet implemented
181
            rejectCount = 1
183
            rejectCount = 1
182
            resp.content_type = 'text/html'
184
            resp.content_type = 'text/html'