def get_repository_metadata_by_id(app, id):
 sa_session = app.model.context.current
 return sa_session.query(app.model.RepositoryMetadata).get(app.security.decode_id(id))

def get_repository_metadata_by_id ( app , id ) : sa_session = app . model . context . current return sa_session . query ( app . model . RepositoryMetadata ) . get ( app . security . decode_id ( id ) )
get repository metadata from the database .