Subversion Repositories SmartDukaan

Rev

Rev 13614 | Details | Compare with Previous | Last modification | View Log | RSS feed

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