def get_repository_dependencies(app, metadata_id):
 sa_session = app.model.context.current
 return sa_session.query(app.model.RepositoryDependency).filter((app.model.RepositoryDependency.table.c.parent_metadata_id == metadata_id)).all()

def get_repository_dependencies ( app , metadata_id ) : sa_session = app . model . context . current return sa_session . query ( app . model . RepositoryDependency ) . filter ( ( app . model . RepositoryDependency . table . c . parent_metadata_id == metadata_id ) ) . all ( )
return a list of repositorydependency objects that specify the provided repository metadata record as the parent .