Subversion Repositories SmartDukaan

Rev

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

Rev 494 Rev 501
Line 6... Line 6...
6
inventory_client = InventoryClient()
6
inventory_client = InventoryClient()
7
 
7
 
8
inventory_client.__start__()
8
inventory_client.__start__()
9
 
9
 
10
client = inventory_client.get_client()
10
client = inventory_client.get_client()
-
 
11
deals = client.getBestDeals()
-
 
12
print deals
11
 
13
 
-
 
14
'''
12
timestamp = to_java_date(datetime.datetime.now())
15
timestamp = to_java_date(datetime.datetime.now())
13
availability = {1:20}
16
availability = {1:20}
14
 
17
 
15
 
18
 
16
warehouse = Warehouse()
19
warehouse = Warehouse()
Line 23... Line 26...
23
warehouse.vendorString = "07430284979"
26
warehouse.vendorString = "07430284979"
24
 
27
 
25
client.addWarehouse(warehouse)
28
client.addWarehouse(warehouse)
26
 
29
 
27
 
30
 
28
'''
31
 
29
client.updateInventory(1, timestamp, availability)
32
client.updateInventory(1, timestamp, availability)
30
 
33
 
31
 
34
 
32
warehouse = Warehouse()
35
warehouse = Warehouse()
33
 
36