Subversion Repositories SmartDukaan

Rev

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

Rev 6096 Rev 6467
Line 17... Line 17...
17
    update_inventory_history, is_alive, add_inventory, add_bad_inventory, \
17
    update_inventory_history, is_alive, add_inventory, add_bad_inventory, \
18
    mark_missed_inventory_updates_as_processed, update_vendor_string, \
18
    mark_missed_inventory_updates_as_processed, update_vendor_string, \
19
    get_item_keys_to_be_processed, reset_availability, get_shipping_locations, \
19
    get_item_keys_to_be_processed, reset_availability, get_shipping_locations, \
20
    initialize, get_inventory_snapshot, clear_item_availability_cache, \
20
    initialize, get_inventory_snapshot, clear_item_availability_cache, \
21
    reset_availability_for_warehouse, get_vendor, get_pending_orders_inventory, \
21
    reset_availability_for_warehouse, get_vendor, get_pending_orders_inventory, \
22
    is_order_billable
22
    is_order_billable, get_our_warehouse_id_for_vendor
23
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
23
from shop2020.model.v1.inventory.impl.DataService import Warehouse, \
24
    MissedInventoryUpdate, VendorItemMapping
24
    MissedInventoryUpdate, VendorItemMapping
25
from shop2020.thriftpy.model.v1.inventory.ttypes import \
25
from shop2020.thriftpy.model.v1.inventory.ttypes import \
26
    InventoryServiceException, WarehouseType, InventoryType, \
26
    InventoryServiceException, WarehouseType, InventoryType, \
27
    AvailableAndReservedStock
27
    AvailableAndReservedStock
Line 559... Line 559...
559
        """
559
        """
560
        try:
560
        try:
561
            update_vendor_string(warehouseId, vendorString)
561
            update_vendor_string(warehouseId, vendorString)
562
        finally:
562
        finally:
563
            close_session()
563
            close_session()
564
            
-
 
565
564
    def getOurWarehouseIdForVendor(self, vendorId):
-
 
565
        """
-
 
566
        Returns warehouseId for our warehouse for a vendor
-
 
567
        """    
-
 
568
        try:
-
 
569
            return get_our_warehouse_id_for_vendor(vendorId)
-
 
570
        finally:
-
 
571
            close_session()
-
 
572
566
573