'Parse a URL query into get_vars
@param query: the URL query string
@return: the get_vars (Storage)'

@staticmethod
def parse_url(url):

    if (not url):
        return Storage()
    elif ('?' in url):
        query = url.split('?', 1)[1]
    elif ('=' in url):
        query = url
    else:
        return Storage()
    import cgi
    dget = cgi.parse_qsl(query, keep_blank_values=1)
    get_vars = Storage()
    for (key, value) in dget:
        if (key in get_vars):
            if (type(get_vars[key]) is list):
                get_vars[key].append(value)
            else:
                get_vars[key] = [get_vars[key], value]
        else:
            get_vars[key] = value
    return get_vars
