Subversion Repositories SmartDukaan

Rev

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

Rev 13514 Rev 16214
Line 585... Line 585...
585
        try:
585
        try:
586
            f = open('/catalog-dumps/catalog.items')
586
            f = open('/catalog-dumps/catalog.items')
587
            itemids = f.readline()
587
            itemids = f.readline()
588
            f.close()
588
            f.close()
589
            if len(itemids) == 0 or "NULL" in itemids:
589
            if len(itemids) == 0 or "NULL" in itemids:
590
                return
590
                pass
591
            else:
591
            else:
592
                itemids = [int(itemid) for itemid in itemids.split(",")]
592
                itemids = [int(itemid) for itemid in itemids.split(",")]
593
                clear_item_availability_cache(itemids)
593
                clear_item_availability_cache(itemids)
-
 
594
        except:
-
 
595
            print "Could not read file"
594
        finally:
596
        finally:
595
            close_session()
597
            close_session()
-
 
598
        return
596
 
599
 
597
    def clearItemAvailabilityCacheForItem(self, item_id):
600
    def clearItemAvailabilityCacheForItem(self, item_id):
598
        """
601
        """
599
        Clear item availability cache.
602
        Clear item availability cache.
600
        """
603
        """