(arg)
return dbdict(skytools.db_urldecode(arg))
Parse data for one urlencoded record.
        Useful for turning incoming serialized data into structure usable for manipulation.
Parse data for one urlencoded record.
        Useful for turning incoming serialized data into structure usable for manipulation.
Parse data for one urlencoded record . Useful for turning incoming serialized data into structure usable for manipulation .
def get_record(arg):
    """ Parse data for one urlencoded record.
        Useful for turning incoming serialized data into structure usable for manipulation.
    """
    if not arg:
        return dbdict()

    # allow array of single record
    if arg[0] in ('{', '['):
        lst = skytools.parse_pgarray(arg)
        if len(lst) != 1:
            raise ValueError('get_record() expects exactly 1 row, got %d' % len(lst))
        arg = lst[0]

    # parse record
    return dbdict(skytools.db_urldecode(arg))
def get_record ( arg ) : if not arg : return dbdict ( ) # allow array of single record if arg [ 0 ] in ( '{' , '[' ) : lst = skytools . parse_pgarray ( arg ) if len ( lst ) != 1 : raise ValueError ( 'get_record() expects exactly 1 row, got %d' % len ( lst ) ) arg = lst [ 0 ] # parse record return dbdict ( skytools . db_urldecode ( arg ) )