Revision ad730cc5 snf-astakos-app/astakos/api/util.py
b/snf-astakos-app/astakos/api/util.py | ||
---|---|---|
44 | 44 |
response['Content-Type'] = 'application/json; charset=UTF-8' |
45 | 45 |
response['Content-Length'] = len(response.content) |
46 | 46 |
return response |
47 |
|
|
48 |
|
|
49 |
def is_integer(x): |
|
50 |
return isinstance(x, (int, long)) |
|
51 |
|
|
52 |
|
|
53 |
def are_integer(lst): |
|
54 |
return all(map(is_integer, lst)) |
Also available in: Unified diff