Subversion Repositories SmartDukaan

Rev

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

Rev 15122 Rev 15123
Line 492... Line 492...
492
                    return retailer
492
                    return retailer
493
            if status=='retry':
493
            if status=='retry':
494
                retailer.status = 'assigned'
494
                retailer.status = 'assigned'
495
            else:
495
            else:
496
                retailer.status = 'fassigned'
496
                retailer.status = 'fassigned'
497
            retailer.retry_count += 1
-
 
498
            session.commit()
497
            session.commit()
499
            print "getRetryRetailer", retailer.id
498
            print "getRetryRetailer", retailer.id
500
        finally:
499
        finally:
501
            session.close()
500
            session.close()
502
        return retailer
501
        return retailer
Line 529... Line 528...
529
                        retailer.status = 'assigned'
528
                        retailer.status = 'assigned'
530
                    else:
529
                    else:
531
                        retailer.status = 'fassigned'
530
                        retailer.status = 'fassigned'
532
                    print "Found Retailer", retailer.id, "with status", status,"assigned to", self.agentId
531
                    print "Found Retailer", retailer.id, "with status", status,"assigned to", self.agentId
533
                    retailer.retry_count = 0
532
                    retailer.retry_count = 0
-
 
533
                    retailer.invalid_retry_count = 0
534
                    session.commit()
534
                    session.commit()
535
                    print "-"*50
535
                    print "-"*50
536
                    print "Found Retailer", retailer.id, "with status", status,"assigned to", self.agentId
536
                    print "Found Retailer", retailer.id, "with status", status,"assigned to", self.agentId
537
                    retry=False
537
                    retry=False
538
                        
538