def getIntFromGet(request,key):
try:<EOL><INDENT>return int(request.GET.get(key))<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>return None<EOL><DEDENT>
This function just parses the request GET data for the requested key,
and returns it as an integer, returning none if the key is not
available or is in incorrect format.