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

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
gets the osm-related options for a pe_id .