Subversion Repositories SmartDukaan

Rev

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

Rev 6531 Rev 6532
Line 37... Line 37...
37
    '''
37
    '''
38
    
38
    
39
    def __init__(self, dbname='catalog', db_hostname='localhost'):
39
    def __init__(self, dbname='catalog', db_hostname='localhost'):
40
        '''
40
        '''
41
        Constructor
41
        Constructor
42
        '''
42
u        '''
43
        initialize(dbname, db_hostname)
43
        initialize(dbname, db_hostname)
44
        try:
44
        try:
45
            config_client = ConfigClient()
45
            config_client = ConfigClient()
46
            self.latest_arrivals_limit = int(config_client.get_property("LATEST_ARRIVALS_LIMIT"));
46
            self.latest_arrivals_limit = int(config_client.get_property("LATEST_ARRIVALS_LIMIT"));
47
            self.best_sellers_limit = int(config_client.get_property("BEST_SELLERS_LIMIT"))
47
            self.best_sellers_limit = int(config_client.get_property("BEST_SELLERS_LIMIT"))
Line 599... Line 599...
599
    def insertItemtoIgnoreInventoryUpdatelist(self,item_id,warehouse_id):
599
    def insertItemtoIgnoreInventoryUpdatelist(self,item_id,warehouse_id):
600
        """
600
        """
601
        Returns list of itemid and warehouseId for ignored inventory update
601
        Returns list of itemid and warehouseId for ignored inventory update
602
        """
602
        """
603
        try:
603
        try:
604
            insert_item_to_ignore_inventory_update_list(item_id,warehouse_id)
604
            return insert_item_to_ignore_inventory_update_list(item_id,warehouse_id)
605
        finally:
605
        finally:
606
            close_session()     
606
            close_session()     
607
    def deleteItemFromIgnoredInventoryUpdateList(self,item_id,warehouse_id):
607
    def deleteItemFromIgnoredInventoryUpdateList(self,item_id,warehouse_id):
608
        """
608
        """
609
        Deletes warehouse and item entry from inventory update ignore list
609
        Deletes warehouse and item entry from inventory update ignore list