Subversion Repositories SmartDukaan

Rev

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

Rev 12819 Rev 12953
Line 293... Line 293...
293
            print "Successfully sent email"
293
            print "Successfully sent email"
294
        except:
294
        except:
295
            print "Error: unable to send email."
295
            print "Error: unable to send email."
296
 
296
 
297
def write_report(filteredData,exceptionList):
297
def write_report(filteredData,exceptionList):
298
    wbk = xlwt.Workbook()
298
    wbk = xlwt.Workbook(encoding="UTF-8")
299
    sheet = wbk.add_sheet('Low TP SD')
299
    sheet = wbk.add_sheet('Low TP SD')
300
    xstr = lambda s: s or ""
300
    xstr = lambda s: s or ""
301
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
301
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
302
    
302
    
303
    excel_integer_format = '0'
303
    excel_integer_format = '0'