Subversion Repositories SmartDukaan

Rev

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

Rev 15561 Rev 15562
Line 510... Line 510...
510
                filename = directory + "/" + merchantOrderId   
510
                filename = directory + "/" + merchantOrderId   
511
                f = open(filename,'w')
511
                f = open(filename,'w')
512
                f.write(rawHtml) # python will convert \n to os.linesep
512
                f.write(rawHtml) # python will convert \n to os.linesep
513
                f.close() # you can omit in most cases as the destructor will call if
513
                f.close() # you can omit in most cases as the destructor will call if
514
                result = self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, True)['result']
514
                result = self.parseOrderRawHtml(merchantOrder['orderId'], merchantOrder['subTagId'], merchantOrder['userId'], rawHtml, url, True)['result']
-
 
515
                print "result", result
515
                try:
516
                try:
516
                    order1 = session.query(OrdersRaw).filter_by(id=merchantOrder['orderId']).first()
517
                    order1 = session.query(OrdersRaw).filter_by(id=merchantOrder['orderId']).first()
517
                    order1.status = result
518
                    order1.status = result
518
                    order1.rawhtml = rawHtml
519
                    order1.rawhtml = rawHtml
519
                    session.commit()
520
                    session.commit()