Subversion Repositories SmartDukaan

Rev

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

Rev 3086 Rev 3133
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/python
2
import sys
2
import sys
3
from shop2020.clients.InventoryClient import InventoryClient
3
from shop2020.clients.CatalogClient import CatalogClient
4
 
4
 
5
if __name__ == '__main__' and __package__ is None:
5
if __name__ == '__main__' and __package__ is None:
6
    import os
6
    import os
7
    sys.path.insert(0, os.getcwd())
7
    sys.path.insert(0, os.getcwd())
8
 
8
 
9
def notify():
9
def notify():
10
    client = InventoryClient().get_client()
10
    client = CatalogClient().get_client()
11
    client.sendProductNotifications()
11
    client.sendProductNotifications()
12
    print "Product notifications sending completed"
12
    print "Product notifications sending completed"
13
            
13
            
14
def main():
14
def main():
15
    notify()
15
    notify()