Subversion Repositories SmartDukaan

Rev

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

Rev 16838 Rev 17087
Line 82... Line 82...
82
                'Malformed JSON',
82
                'Malformed JSON',
83
                'Could not decode the request body. The '
83
                'Could not decode the request body. The '
84
                'JSON was incorrect.')
84
                'JSON was incorrect.')
85
        try:
85
        try:
86
            store = main.getStore(req.get_param_as_int("storeId"))
86
            store = main.getStore(req.get_param_as_int("storeId"))
87
            print "req_obj",req_obj
87
            #print "req_obj",req_obj
88
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
88
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
89
            resp.body = json.dumps({'result':result}, encoding='utf-8')
89
            resp.body = json.dumps({'result':result}, encoding='utf-8')
90
            '''
90
            '''
91
            elif req.get_param_as_int("storeId") == 7:
91
            elif req.get_param_as_int("storeId") == 7:
92
                if 'myprofile' in req_obj['url'][0]:
92
                if 'myprofile' in req_obj['url'][0]: