Subversion Repositories SmartDukaan

Rev

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

Rev 644 Rev 1251
Line 12... Line 12...
12
from shop2020.logistics.service.impl import DataService
12
from shop2020.logistics.service.impl import DataService
13
from shop2020.logistics.service.impl.DataService import WarehouseAllocation
13
from shop2020.logistics.service.impl.DataService import WarehouseAllocation
14
from shop2020.thriftpy.logistics.ttypes import WarehouseLocation
14
from shop2020.thriftpy.logistics.ttypes import WarehouseLocation
15
 
15
 
16
def load_warehouse_allocations(filename):
16
def load_warehouse_allocations(filename):
17
    DataService.initialize()
17
    DataService.initialize('logistics')
18
    
18
    
19
    workbook = xlrd.open_workbook(filename)
19
    workbook = xlrd.open_workbook(filename)
20
    sheet = workbook.sheet_by_index(0)
20
    sheet = workbook.sheet_by_index(0)
21
    num_rows = sheet.nrows
21
    num_rows = sheet.nrows
22
    for rownum in range(1, num_rows):
22
    for rownum in range(1, num_rows):