Subversion Repositories SmartDukaan

Rev

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

Rev 15240 Rev 15241
Line 638... Line 638...
638
            else:
638
            else:
639
                fetchInfo.last_action = 'disposition'
639
                fetchInfo.last_action = 'disposition'
640
                fetchInfo.last_action_time = last_disposition.created
640
                fetchInfo.last_action_time = last_disposition.created
641
            fetchInfo.retailer_id = retailer.id
641
            fetchInfo.retailer_id = retailer.id
642
            session.commit()
642
            session.commit()
-
 
643
            
-
 
644
            if retailer is None:
-
 
645
                resp.body = "{}"
-
 
646
            else:
-
 
647
                resp.body = json.dumps(todict(getRetailerObj(retailer)), encoding='utf-8')
-
 
648
            
-
 
649
            return
-
 
650
            
643
        finally:
651
        finally:
644
            session.close()
652
            session.close()
645
        
653
 
646
        if retailer is None:
654
        if retailer is None:
647
            resp.body = "{}"
655
            resp.body = "{}"
648
        else:
656
        else:
649
            resp.body = json.dumps(todict(getRetailerObj(retailer)), encoding='utf-8')
657
            resp.body = json.dumps(todict(getRetailerObj(retailer)), encoding='utf-8')
650
        
658
        
-
 
659
        
651
    def on_post(self, req, resp, agentId, callType):
660
    def on_post(self, req, resp, agentId, callType):
652
        returned = False
661
        returned = False
653
        self.agentId = int(agentId)
662
        self.agentId = int(agentId)
654
        self.callType = callType
663
        self.callType = callType
655
        jsonReq = json.loads(req.stream.read(), encoding='utf-8')
664
        jsonReq = json.loads(req.stream.read(), encoding='utf-8')