Subversion Repositories SmartDukaan

Rev

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

Rev 13798 Rev 13799
Line 103... Line 103...
103
                'Could not decode the request body. The '
103
                'Could not decode the request body. The '
104
                'JSON was incorrect.')
104
                'JSON was incorrect.')
105
            
105
            
106
        store = main.getStore(int(req_json['sourceId']))
106
        store = main.getStore(int(req_json['sourceId']))
107
        result = store.parseOrderRawHtml(int(req_json['orderId']), req_json['subTagId'], int(req_json['userId']), req_json['rawHtml'], req_json['orderSuccessUrl'])
107
        result = store.parseOrderRawHtml(int(req_json['orderId']), req_json['subTagId'], int(req_json['userId']), req_json['rawHtml'], req_json['orderSuccessUrl'])
108
        resp.body = json.dumps({"result":result}, encoding='utf-8')
108
        resp.body = json.dumps(result, encoding='utf-8')
109
    
109
    
110
    def on_get(self, req, resp, userId):
110
    def on_get(self, req, resp, userId):
111
        page = req.get_param_as_int("page")
111
        page = req.get_param_as_int("page")
112
        window = req.get_param_as_int("window")
112
        window = req.get_param_as_int("window")
113
        result = Mongo.getMerchantOrdersByUser(int(userId), page, window)
113
        result = Mongo.getMerchantOrdersByUser(int(userId), page, window)