Subversion Repositories SmartDukaan

Rev

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

Rev 5944 Rev 5984
Line 3... Line 3...
3
 
3
 
4
if __name__ == '__main__' and __package__ is None:
4
if __name__ == '__main__' and __package__ is None:
5
    import os
5
    import os
6
    sys.path.insert(0, os.getcwd())
6
    sys.path.insert(0, os.getcwd())
7
 
7
 
8
from shop2020.clients.CatalogClient import CatalogClient
8
from shop2020.clients.InventoryClient import InventoryClient
9
 
9
 
10
def notify():
10
def notify():
11
    client = CatalogClient().get_client()
11
    client = InventoryClient().get_client()
12
    client.clearItemAvailabilityCache()
12
    client.clearItemAvailabilityCache()
13
    print "Item availability cache cleared."
13
    print "Item availability cache cleared."
14
            
14
            
15
def main():
15
def main():
16
    notify()
16
    notify()