def auth_user_options_get_osm(pe_id):

    db = current.db
    table = current.s3db.auth_user_options
    query = (table.pe_id == pe_id)
    record = db(query).select(limitby=(0, 1)).first()
    if record:
        return record.osm_oauth_consumer_key, record.osm_oauth_consumer_secret
    else:
        return None

# END =========================================================================
Renders fields for a form with an optional template choice.
dataset/ETHPy150Open sahana/eden/modules/s3db/auth.py/auth_user_options_get_osm--crossover with--dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/core/templatetags/mezzanine_tags.py/fields_for