Subversion Repositories SmartDukaan

Rev

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

Rev 14006 Rev 14007
Line 27... Line 27...
27
        page = req.get_param_as_int("page")
27
        page = req.get_param_as_int("page")
28
        window = req.get_param_as_int("window")
28
        window = req.get_param_as_int("window")
29
        string1 = req.get_param("searchMap")
29
        string1 = req.get_param("searchMap")
30
        searchMap={}
30
        searchMap={}
31
        if string1 is None or string1 == "":
31
        if string1 is None or string1 == "":
-
 
32
            pass
-
 
33
        else:
32
            try:
34
            try:
33
                if string1 is None or string1 == "":
-
 
34
                    searchMap = json.loads(string1, encoding='utf-8')
35
                searchMap = json.loads(string1, encoding='utf-8')
35
            except:
36
            except:
36
                raise falcon.HTTPError(falcon.HTTP_400,
37
                raise falcon.HTTPError(falcon.HTTP_400,
37
                    'Malformed JSON',
38
                    'Malformed JSON',
38
                    'Could not decode the request body. The '
39
                    'Could not decode the request body. The '
39
                    'JSON was incorrect.')
40
                    'JSON was incorrect.')