Subversion Repositories SmartDukaan

Rev

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

Rev 9364 Rev 9365
Line 13... Line 13...
13
from shop2020.clients.InventoryClient import InventoryClient
13
from shop2020.clients.InventoryClient import InventoryClient
14
import xlwt
14
import xlwt
15
import urllib2
15
import urllib2
16
import time
16
import time
17
import simplejson as json
17
import simplejson as json
-
 
18
from shop2020.utils import EmailAttachmentSender
-
 
19
from shop2020.utils.EmailAttachmentSender import get_attachment_part
-
 
20
 
18
 
21
 
19
 
22
 
20
if __name__ == '__main__' and __package__ is None:
23
if __name__ == '__main__' and __package__ is None:
21
    import sys
24
    import sys
22
    import os
25
    import os
Line 239... Line 242...
239
        i= i+1
242
        i= i+1
240
        sheet_iterator+=1
243
        sheet_iterator+=1
241
        
244
        
242
    createSheetForBuyBoxItems(buyBoxItems,wbk)
245
    createSheetForBuyBoxItems(buyBoxItems,wbk)
243
    wbk.save(filename)
246
    wbk.save(filename)
-
 
247
    
-
 
248
    EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@shop2020.in"], "Insurance Details for date " , "Please find attached insurance details for today.", [get_attachment_part(filename)], ["kshitij.sood@shop2020.in"], [])
-
 
249
 
-
 
250
    
244
 
251
 
245
def createSheetForBuyBoxItems(buyBoxItems,wbk):
252
def createSheetForBuyBoxItems(buyBoxItems,wbk):
246
    sheet = wbk.add_sheet('BuyBoxItems')
253
    sheet = wbk.add_sheet('BuyBoxItems')
247
 
254
 
248
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')
255
    heading_xf = xlwt.easyxf('font: bold on; align: wrap off, vert centre, horiz center')