Subversion Repositories SmartDukaan

Rev

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

Rev 14830 Rev 14846
Line 35... Line 35...
35
    This is to map order statuses of our system to order statuses of snapdeal.
35
    This is to map order statuses of our system to order statuses of snapdeal.
36
    And our statuses will change accordingly.
36
    And our statuses will change accordingly.
37
    
37
    
38
    '''
38
    '''
39
    OrderStatusMap = {
39
    OrderStatusMap = {
40
                      MStore.ORDER_PLACED : ['in progress', 'pending for verification', 'not available'],
40
                      MStore.ORDER_PLACED : ['in progress', 'pending for verification', 'not available', 'in process'],
41
                      MStore.ORDER_DELIVERED : ['delivered'],
41
                      MStore.ORDER_DELIVERED : ['delivered'],
42
                      MStore.ORDER_SHIPPED : ['in transit'],
42
                      MStore.ORDER_SHIPPED : ['in transit'],
43
                      MStore.ORDER_CANCELLED : ['closed for vendor reallocation', 'cancelled', 'product returned by courier', 'returned', 'n/a']
43
                      MStore.ORDER_CANCELLED : ['closed for vendor reallocation', 'cancelled', 'product returned by courier', 'returned', 'n/a']
44
                      }
44
                      }
45
    
45
    
Line 405... Line 405...
405
    return urllib.urlencode(parameters)
405
    return urllib.urlencode(parameters)
406
 
406
 
407
def main():
407
def main():
408
    #print todict([1,2,"3"])
408
    #print todict([1,2,"3"])
409
    store = getStore(3)
409
    store = getStore(3)
410
    print store.parseOrderRawHtml(3221, "32323", 2, "323243", "https://m.snapdeal.com/purchaseMobileComplete?code=b11f577434a63e15c369862f7ea13054&order=5677589847")
410
    print store.parseOrderRawHtml(3221, "32323", 2, "323243", "https://m.snapdeal.com/purchaseMobileComplete?code=8943993fa3678d480157e7ed4292ccd5&order=5810418949")
411
    #store.scrapeStoreOrders()
411
    #store.scrapeStoreOrders()
412
    #store._isSubOrderActive(8, "5970688907")
412
    #store._isSubOrderActive(8, "5970688907")
413
    #store.scrapeAffiliate()
413
    #store.scrapeAffiliate()
414
    #store.scrapeStoreOrders()
414
    #store.scrapeStoreOrders()
415
 
415