Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
19293 amit.gupta 1
from dtr.main import getStore, tprint, sourceMap
2
import traceback
3
 
4
 
5
 
6
def main():
7
    for key, val in sourceMap.iteritems():
8
        try:
9
            tprint("Iterating through affiliate for", val)
10
            store = getStore(key)
11
            if store is not None:
12
                if store.store_id==4:
13
                    store.scrapeStoreOrders()
14
        except:
15
            tprint("Error")
16
            traceback.print_exc()
17
if __name__=='__main__':
18
    main()