Subversion Repositories SmartDukaan

Rev

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

Rev 16814 Rev 16815
Line 174... Line 174...
174
                    if not chunk:
174
                    if not chunk:
175
                        break
175
                        break
176
                    chunks.append(chunk) 
176
                    chunks.append(chunk) 
177
                
177
                
178
                chunk = "".join(chunks)
178
                chunk = "".join(chunks)
-
 
179
                print "Chunk1"
-
 
180
                print chunk
179
                chunk = utils.find_between(chunk, boundary, boundary)
181
                chunk = utils.find_between(chunk, boundary, boundary)
-
 
182
                print "Chunk2 after boundary removed"
-
 
183
                print chunk
180
                chunk = chunk.split("\n\n")[1]    
184
                chunk = chunk.split("\n\n")[1]    
181
                image_file.write(chunk)
185
                image_file.write(chunk)
-
 
186
                print "Final chunk"
182
                print chunk
187
                print chunk
183
 
188
 
184
            rejectCount = process_rejects(filepath) #this function is not yet implemented
189
            #rejectCount = process_rejects(filepath) #this function is not yet implemented
185
            
190
            rejectCount = 1
186
            resp.body = """
191
            resp.body = """
187
                <html><head><title>Upload Rejects</title></head><body>
192
                <html><head><title>Upload Rejects</title></head><body>
188
            <h1>Reject Successful</h1>
193
            <h1>Reject Successful</h1>
189
            <h2> %d orders rejected</h2>
194
            <h2> %d orders rejected</h2>
190
   
195