Subversion Repositories SmartDukaan

Rev

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

Rev 16392 Rev 16393
Line 76... Line 76...
76
                'Malformed JSON',
76
                'Malformed JSON',
77
                'Could not decode the request body. The '
77
                'Could not decode the request body. The '
78
                'JSON was incorrect.')
78
                'JSON was incorrect.')
79
        try:
79
        try:
80
            store = main.getStore(req.get_param_as_int("storeId"))
80
            store = main.getStore(req.get_param_as_int("storeId"))
-
 
81
            print "req_obj",req_obj
81
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
82
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
82
            resp.body = json.dumps({'result':result}, encoding='utf-8')
83
            resp.body = json.dumps({'result':result}, encoding='utf-8')
83
            '''
84
            '''
84
            elif req.get_param_as_int("storeId") == 7:
85
            elif req.get_param_as_int("storeId") == 7:
85
                if 'myprofile' in req_obj['url'][0]:
86
                if 'myprofile' in req_obj['url'][0]: