(dict)
return '&'.join(elem_list)
Database specific urlencode.

    Encode None as key without '='.  That means that in "foo&bar=",
    foo is NULL and bar is empty string.

    Python implementation.
Database specific urlencode.
Database specific urlencode .
def db_urlencode(dict):
    """Database specific urlencode.

    Encode None as key without '='.  That means that in "foo&bar=",
    foo is NULL and bar is empty string.

    Python implementation.
    """

    elem_list = []
    for k, v in dict.items():
        if v is None:
            elem = urllib.quote_plus(str(k))
        else:
            elem = urllib.quote_plus(str(k)) + '=' + urllib.quote_plus(str(v))
        elem_list.append(elem)
    return '&'.join(elem_list)
def db_urlencode ( dict ) : elem_list = [ ] for k , v in dict . items ( ) : if v is None : elem = urllib . quote_plus ( str ( k ) ) else : elem = urllib . quote_plus ( str ( k ) ) + '=' + urllib . quote_plus ( str ( v ) ) elem_list . append ( elem ) return '&' . join ( elem_list )