(qs)
return res
Database specific urldecode.

    Decode key without '=' as None.
    This also does not support one key several times.

    Python implementation.
Database specific urldecode.
Database specific urldecode .
def db_urldecode(qs):
    """Database specific urldecode.

    Decode key without '=' as None.
    This also does not support one key several times.

    Python implementation.
    """

    res = {}
    for elem in qs.split('&'):
        if not elem:
            continue
        pair = elem.split('=', 1)
        name = urllib.unquote_plus(pair[0])

        # keep only one instance around
        name = intern(str(name))

        if len(pair) == 1:
            res[name] = None
        else:
            res[name] = urllib.unquote_plus(pair[1])
    return res
def db_urldecode ( qs ) : res = { } for elem in qs . split ( '&' ) : if not elem : continue pair = elem . split ( '=' , 1 ) name = urllib . unquote_plus ( pair [ 0 ] ) # keep only one instance around name = intern ( str ( name ) ) if len ( pair ) == 1 : res [ name ] = None else : res [ name ] = urllib . unquote_plus ( pair [ 1 ] ) return res