Subversion Repositories SmartDukaan

Rev

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

Rev 13823 Rev 13868
Line 114... Line 114...
114
                print "Error occurred"
114
                print "Error occurred"
115
                traceback.print_exc()
115
                traceback.print_exc()
116
                resp['result'] = 'PARSE_ERROR'
116
                resp['result'] = 'PARSE_ERROR'
117
                return resp    
117
                return resp    
118
                    
118
                    
-
 
119
    #This should be exposed from api for specific sources
-
 
120
    def scrapeStoreOrders(self):
119
        
121
        pass
120
 
122
    
-
 
123
    def getTrackingUrls(self, userId):
-
 
124
        count = self._getActiveOrders({'userId':userId}).count()
-
 
125
        if count > 0:
-
 
126
            return []
-
 
127
        else: 
-
 
128
            if self.store_id == 1:
-
 
129
                return ['https://www.amazon.in/gp/css/order-history', 'https://www.amazon.in/gp/css/order-history/?orderFilter=cancelled']
-
 
130
            else:
-
 
131
                return []
121
def main():
132
def main():
122
    store = getStore(1)
133
    store = getStore(1)
123
        
134
        
124
    htmlstr = '''
135
    htmlstr = '''
125
 
136