Subversion Repositories SmartDukaan

Rev

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

Rev 14246 Rev 14284
Line 148... Line 148...
148
        else: 
148
        else: 
149
            return missingOrderUrls
149
            return missingOrderUrls
150
            
150
            
151
    def trackOrdersForUser(self, userId, url, rawHtml):
151
    def trackOrdersForUser(self, userId, url, rawHtml):
152
        
152
        
153
        f = open("/tmp/User" + str(userId) + "/" + str(datetime.datetime.now()),'w')
153
        f = open("/tmp/User" + str(userId) + "/" + str(datetime.now()),'w')
154
        f.write(rawHtml) # python will convert \n to os.linesep
154
        f.write(rawHtml) # python will convert \n to os.linesep
155
        f.close() # you can omit in most cases as the destructor will call if
155
        f.close() # you can omit in most cases as the destructor will call if
156
        
156
        
157
        try:
157
        try:
158
            searchMap = {'userId':userId}
158
            searchMap = {'userId':userId}
Line 283... Line 283...
283
            "could not read"
283
            "could not read"
284
        return str1
284
        return str1
285
 
285
 
286
 
286
 
287
if __name__ == '__main__':
287
if __name__ == '__main__':
288
        main()
-
 
289
        
-
 
290
        
-
 
291
288
        main()
-
 
289
292
290