Subversion Repositories SmartDukaan

Rev

Rev 18691 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18691 Rev 21333
Line 126... Line 126...
126
                'Could not decode the request body. The '
126
                'Could not decode the request body. The '
127
                'JSON was incorrect.')
127
                'JSON was incorrect.')
128
        try:
128
        try:
129
            store = main.getStore(req.get_param_as_int("storeId"))
129
            store = main.getStore(req.get_param_as_int("storeId"))
130
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
130
            result = store.trackOrdersForUser(int(userId),req_obj['url'][0],req_obj['html'][0])
-
 
131
            print result
131
            resp.body = json.dumps({'result':result}, encoding='utf-8')
132
            resp.body = json.dumps({'result':result}, encoding='utf-8')
132
            '''
133
            '''
133
            elif req.get_param_as_int("storeId") == 7:
134
            elif req.get_param_as_int("storeId") == 7:
134
                if 'myprofile' in req_obj['url'][0]:
135
                if 'myprofile' in req_obj['url'][0]:
135
                    result = store.parseMyProfileForEmailId(int(userId),req_obj['url'][0],req_obj['html'][0])
136
                    result = store.parseMyProfileForEmailId(int(userId),req_obj['url'][0],req_obj['html'][0])