Subversion Repositories SmartDukaan

Rev

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

Rev 16821 Rev 16822
Line 178... Line 178...
178
                    if not chunk:
178
                    if not chunk:
179
                        break
179
                        break
180
                    chunks.append(chunk) 
180
                    chunks.append(chunk) 
181
                
181
                
182
                chunk = "".join(chunks)
182
                chunk = "".join(chunks)
183
            nextpart = "--" + boundary
183
                nextpart = "--" + boundary
184
            lastpart = "--" + boundary + "--"
184
                lastpart = "--" + boundary + "--"
185
            
185
                
186
            chunk = find_between(chunk, nextpart, lastpart)
186
                chunk = find_between(chunk, nextpart, lastpart)
187
            chunk = chunk.split("\n\n")[1]
187
                chunk = chunk.split("\n\n")[1]
-
 
188
                image_file.write(chunk)
188
            #rejectCount = process_rejects(filepath) #this function is not yet implemented
189
            rejectCount = process_rejects(filepath) #this function is not yet implemented
189
            rejectCount = 1
190
            rejectCount = 1
190
            resp.content_type = 'text/html'
191
            resp.content_type = 'text/html'
191
            resp.body = """
192
            resp.body = """
192
                <html><head><title>Upload Rejects</title></head><body>
193
                <html><head><title>Upload Rejects</title></head><body>
193
            <h1>Reject Successful</h1>
194
            <h1>Reject Successful</h1>