Subversion Repositories SmartDukaan

Rev

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

Rev 15676 Rev 15677
Line 931... Line 931...
931
            addContactToRetailer(agentId, retailerId, mobile, callType, contactType)
931
            addContactToRetailer(agentId, retailerId, mobile, callType, contactType)
932
            session.commit()
932
            session.commit()
933
        finally:
933
        finally:
934
            session.close()
934
            session.close()
935
 
935
 
936
class AddAddessToRetailer():
936
class AddAddressToRetailer():
937
    def on_post(self,req,resp, agentId):
937
    def on_post(self,req,resp, agentId):
938
        agentId = int(agentId)
938
        agentId = int(agentId)
939
        try:
939
        try:
940
            jsonReq = json.loads(req.stream.read(), encoding='utf-8')
940
            jsonReq = json.loads(req.stream.read(), encoding='utf-8')
941
            retailerId = int(jsonReq.get("retailerid"))
941
            retailerId = int(jsonReq.get("retailerid"))