Subversion Repositories SmartDukaan

Rev

Rev 5984 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5944 mandeep.dh 1
#!/usr/bin/python
2
import sys
3
 
4
if __name__ == '__main__' and __package__ is None:
5
    import os
6
    sys.path.insert(0, os.getcwd())
7
 
8
from shop2020.clients.CatalogClient import CatalogClient
9
 
10
def notify():
11
    client = CatalogClient().get_client()
12
    client.clearItemAvailabilityCache()
13
    print "Item availability cache cleared."
14
 
15
def main():
16
    notify()
17
 
18
if __name__ == '__main__':
19
    main()